From ab027c64a57446521e55ff5154d5a6f87130c4d2 Mon Sep 17 00:00:00 2001 From: piguagua Date: Tue, 23 Jul 2024 01:20:15 +0900 Subject: [PATCH] chore: fix some comments (#151) Signed-off-by: piguagua --- client/README.md | 2 +- client/src/components/FaucetForm.tsx | 2 +- vms/evm.ts | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/README.md b/client/README.md index d4348bb..073cb80 100644 --- a/client/README.md +++ b/client/README.md @@ -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. diff --git a/client/src/components/FaucetForm.tsx b/client/src/components/FaucetForm.tsx index f438de2..e6af2d8 100644 --- a/client/src/components/FaucetForm.tsx +++ b/client/src/components/FaucetForm.tsx @@ -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]) diff --git a/vms/evm.ts b/vms/evm.ts index 2dad74c..e51dbc1 100644 --- a/vms/evm.ts +++ b/vms/evm.ts @@ -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),