From 0014c87ba1fca1c7019fdb2762867dc6bc829deb Mon Sep 17 00:00:00 2001 From: lvyaoting Date: Thu, 5 Dec 2024 21:24:28 +0800 Subject: [PATCH] chore: fix some typos in comment Signed-off-by: lvyaoting --- src/SvmUtils.ts | 2 +- test/evm/hardhat/HubPool.DisputeRootBundle.ts | 2 +- test/svm/SvmSpoke.Bundle.ts | 2 +- test/svm/SvmSpoke.Deposit.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/SvmUtils.ts b/src/SvmUtils.ts index eafb031f1..eb56609a6 100644 --- a/src/SvmUtils.ts +++ b/src/SvmUtils.ts @@ -144,7 +144,7 @@ export const evmAddressToPublicKey = (address: string): PublicKey => { return new PublicKey(ethers.utils.arrayify(bytes32Address)); }; -// TODO: we are inconsistant with where we are placing some utils. we have some stuff here, some stuff that we might +// TODO: we are inconsistent with where we are placing some utils. we have some stuff here, some stuff that we might // want to re-use within the test directory. more over, when moving things into the canonical across repo, we should // re-use the test utils there. export function calculateRelayHashUint8Array(relayData: any, chainId: BN): Uint8Array { diff --git a/test/evm/hardhat/HubPool.DisputeRootBundle.ts b/test/evm/hardhat/HubPool.DisputeRootBundle.ts index 2b1544faf..7fde3b662 100644 --- a/test/evm/hardhat/HubPool.DisputeRootBundle.ts +++ b/test/evm/hardhat/HubPool.DisputeRootBundle.ts @@ -30,7 +30,7 @@ describe("HubPool Root Bundle Dispute", function () { consts.mockSlowRelayRoot ); - // Increment time to avoid any weirdness with the dispute occuring at the same time as the proposal. + // Increment time to avoid any weirdness with the dispute occurring at the same time as the proposal. const proposalTime = await hubPool.getCurrentTime(); await hubPool.connect(dataWorker).setCurrentTime(proposalTime.add(15)); diff --git a/test/svm/SvmSpoke.Bundle.ts b/test/svm/SvmSpoke.Bundle.ts index 82ba950ae..31d55e31c 100644 --- a/test/svm/SvmSpoke.Bundle.ts +++ b/test/svm/SvmSpoke.Bundle.ts @@ -668,7 +668,7 @@ describe("svm_spoke.bundle", () => { relayerRefundLeaves.push({ isSolana: true, leafId: new BN(0), - // Set chainId to 1000. this is a diffrent chainId than what is set in the initialization. This mimics trying to execute a leaf for another chain on the SVM chain. + // Set chainId to 1000. this is a different chainId than what is set in the initialization. This mimics trying to execute a leaf for another chain on the SVM chain. chainId: new BN(1000), amountToReturn: new BN(0), mintPublicKey: mint, diff --git a/test/svm/SvmSpoke.Deposit.ts b/test/svm/SvmSpoke.Deposit.ts index 9812abe74..2892938e6 100644 --- a/test/svm/SvmSpoke.Deposit.ts +++ b/test/svm/SvmSpoke.Deposit.ts @@ -397,7 +397,7 @@ describe("svm_spoke.deposit", () => { assertSE(event[key], value, `${key} should match`); } - // Check fake vault acount balance + // Check fake vault account balance const fakeVaultAccount = await getAccount(connection, fakeVault); assertSE( fakeVaultAccount.amount,