Skip to content

Commit

Permalink
chore: fix some comments (#151)
Browse files Browse the repository at this point in the history
Signed-off-by: piguagua <[email protected]>
  • Loading branch information
piguagua authored Jul 22, 2024
1 parent 0eecd83 commit ab027c6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ On server-side, we need to configure 2 files - `server/.env` for secret keys and

### Setup Environment Variables

Setup the environment variable with your private key and recaptcha secret. Make a `.env` file inside the `/server` directory with following credentials. The faucet server can handle multiple EVM chains, and threfore requires private keys for addresses with funds on each of the chain.
Setup the environment variable with your private key and recaptcha secret. Make a `.env` file inside the `/server` directory with following credentials. The faucet server can handle multiple EVM chains, and therefore requires private keys for addresses with funds on each of the chain.

If you have funds on the same address on every chain, then you can just use `PK` variable. But if you have funds on different addresses on different chains, then you can provide each of the private key against their chain name, as shown below.

Expand Down
2 changes: 1 addition & 1 deletion client/src/components/FaucetForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const FaucetForm = (props: any) => {
}
}, [props.config.V2_SITE_KEY, recaptcha, widgetID, window.grecaptcha])

// Update balance whenver chain changes or after transaction is processed
// Update balance whenever chain changes or after transaction is processed
useEffect(() => {
updateBalance()
}, [chain, token, sendTokenResponse, chainConfigs])
Expand Down
6 changes: 3 additions & 3 deletions vms/evm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,9 @@ export default class EVM {
try {
/*
* asyncCallWithTimeout function can return
* 1. successfull response
* 2. throw API error (will be catched by catch block)
* 3. throw timeout error (will be catched by catch block)
* 1. successful response
* 2. throw API error (will be caught by catch block)
* 3. throw timeout error (will be caught by catch block)
*/
await asyncCallWithTimeout(
this.web3.eth.sendSignedTransaction(rawTransaction),
Expand Down

0 comments on commit ab027c6

Please sign in to comment.