From c5c76e110ee1bfc04cc4cfa74ed1dec6beb93295 Mon Sep 17 00:00:00 2001 From: pennylees Date: Mon, 27 Oct 2025 17:13:58 +0800 Subject: [PATCH] chore: fix some minor issues in the comments Signed-off-by: pennylees --- bench/fixture.ts | 2 +- hardhat.config.ts | 2 +- src/ts/sign.ts | 2 +- test/libraries/Bytecode.sol | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bench/fixture.ts b/bench/fixture.ts index 0de9565c..019ea2d4 100644 --- a/bench/fixture.ts +++ b/bench/fixture.ts @@ -300,7 +300,7 @@ export class BenchFixture { }; break; default: - throw new Error("unreacheable"); + throw new Error("unreachable"); } const signingScheme = (i + Math.floor(i / 4)) % 2 == 0 diff --git a/hardhat.config.ts b/hardhat.config.ts index fa7be040..b2c98b36 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -166,7 +166,7 @@ export default { }, }, namedAccounts: { - // Note: accounts defined by a number refer to the the accounts as configured + // Note: accounts defined by a number refer to the accounts as configured // by the current network. deployer: 0, owner: { diff --git a/src/ts/sign.ts b/src/ts/sign.ts index a41e04f2..db1a6d77 100644 --- a/src/ts/sign.ts +++ b/src/ts/sign.ts @@ -30,7 +30,7 @@ export const EIP1271_MAGICVALUE = ethers.utils.hexDataSlice( export enum SigningScheme { /** * The EIP-712 typed data signing scheme. This is the preferred scheme as it - * provides more infomation to wallets performing the signature on the data + * provides more information to wallets performing the signature on the data * being signed. * * diff --git a/test/libraries/Bytecode.sol b/test/libraries/Bytecode.sol index 00002996..745f22e5 100644 --- a/test/libraries/Bytecode.sol +++ b/test/libraries/Bytecode.sol @@ -33,7 +33,7 @@ library Bytecode { revert("Every immutable is expected to have at least a reference entry"); } - // Only interested in the first occurence of the ith immutable reference + // Only interested in the first occurrence of the ith immutable reference ImmutableReference memory r = jsonImmutables[0]; immutables[i] = which.code.slice(r.start, r.length); }