From 41a2e4f6d228f41fe58823d126e75a5c3edcb952 Mon Sep 17 00:00:00 2001 From: mountcount Date: Mon, 29 Apr 2024 13:55:03 +0800 Subject: [PATCH] all: fix doc typos Signed-off-by: mountcount --- src/helpers.ts | 8 ++++---- src/index.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/helpers.ts b/src/helpers.ts index ae63027e..64bace39 100644 --- a/src/helpers.ts +++ b/src/helpers.ts @@ -115,7 +115,7 @@ You'll need to wait the tx resolve, or increase the gas price via --gasprice (th } function fixProvider(providerGiven: any): any { - // alow it to be used by ethers without any change + // allow it to be used by ethers without any change if (providerGiven.sendAsync === undefined) { providerGiven.sendAsync = ( req: { @@ -2322,7 +2322,7 @@ Note that in this case, the contract deployment will not behave the same if depl if (typeof options.deterministicSalt === 'string') { if (options.deterministicSalt === salt) { throw new Error( - `deterministicSalt cannot be 0x000..., it needs to be a non-zero bytes32 salt. This is to ensure you are explicitly specyfying different addresses for multiple diamonds` + `deterministicSalt cannot be 0x000..., it needs to be a non-zero bytes32 salt. This is to ensure you are explicitly specifying different addresses for multiple diamonds` ); } else { if (options.deterministicSalt.length !== 66) { @@ -2964,7 +2964,7 @@ data: ${data} )) as TransactionResponse; txHashToWait = tx.hash; if (tx.hash !== txHash) { - console.error('non mathcing tx hashes after resubmitting...'); + console.error('non matching tx hashes after resubmitting...'); } console.log('waiting for newly broadcasted tx ...'); } else { @@ -3012,7 +3012,7 @@ data: ${data} ); } await onPendingTx(txReq); - console.error('non mathcing tx hashes after resubmitting...'); + console.error('non matching tx hashes after resubmitting...'); } } } else if (answer === 'increase gas') { diff --git a/src/index.ts b/src/index.ts index 48ed1800..4b1be723 100644 --- a/src/index.ts +++ b/src/index.ts @@ -758,7 +758,7 @@ task(TASK_NODE, 'Starts a JSON-RPC server on top of Hardhat EVM') ` Unsupported network for JSON-RPC server. Only hardhat is currently supported. hardhat-deploy cannot run on the hardhat provider when defaultNetwork is not hardhat, see https://github.com/nomiclabs/hardhat/issues/1139 and https://github.com/wighawag/hardhat-deploy/issues/63 -you can specifiy hardhat via "--network hardhat" +you can specify hardhat via "--network hardhat" ` ); }