From 9dac9a52f4f90dabac506917bab0855652f13c7a Mon Sep 17 00:00:00 2001 From: standstaff Date: Mon, 9 Dec 2024 20:06:14 +0800 Subject: [PATCH] chore: fix some typos in comment Signed-off-by: standstaff --- src/executor/executorManager.ts | 2 +- src/utils/userop.ts | 6 +++--- test/kinto-e2e/README.md | 2 +- test/kinto-e2e/src/index.ts | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/executor/executorManager.ts b/src/executor/executorManager.ts index a41f47f7..c638b221 100644 --- a/src/executor/executorManager.ts +++ b/src/executor/executorManager.ts @@ -460,7 +460,7 @@ export class ExecutorManager { entryPoint, opDetails.accountDeployed ) - if (opDetails.status === "succesful") { + if (opDetails.status === "successful") { this.eventManager.emitIncludedOnChain( userOpHash, transactionHash, diff --git a/src/utils/userop.ts b/src/utils/userop.ts index 69fdf852..9479efe1 100644 --- a/src/utils/userop.ts +++ b/src/utils/userop.ts @@ -199,7 +199,7 @@ export function getAddressFromInitCodeOrPaymasterAndData( type UserOperationDetailsType = { accountDeployed: boolean - status: "succesful" | "calldata_phase_reverted" + status: "successful" | "calldata_phase_reverted" revertReason?: Hex } @@ -298,7 +298,7 @@ export const getBundleStatus = async ( // create result entry if doesn't exist result[opHash] ??= { accountDeployed: false, - status: "succesful" + status: "successful" } switch (eventName) { @@ -312,7 +312,7 @@ export const getBundleStatus = async ( } case "UserOperationEvent": { const status = args.success - ? "succesful" + ? "successful" : "calldata_phase_reverted" result[opHash].status = status break diff --git a/test/kinto-e2e/README.md b/test/kinto-e2e/README.md index 5717d4a3..89658176 100644 --- a/test/kinto-e2e/README.md +++ b/test/kinto-e2e/README.md @@ -1,6 +1,6 @@ # Kinto E2E Tests -E2E tests for Kinto L2, the tests are performed by re-simulating succesfully mined userOperations. Each test case will setup a Alto and Anvil instance at that block height and resubmit the userOperation using either `eth_sendUserOperation` or `pimlico_sendCompressedUserOperation`. +E2E tests for Kinto L2, the tests are performed by re-simulating successfully mined userOperations. Each test case will setup a Alto and Anvil instance at that block height and resubmit the userOperation using either `eth_sendUserOperation` or `pimlico_sendCompressedUserOperation`. ## Running The Tests diff --git a/test/kinto-e2e/src/index.ts b/test/kinto-e2e/src/index.ts index ea83e9a3..711753bf 100644 --- a/test/kinto-e2e/src/index.ts +++ b/test/kinto-e2e/src/index.ts @@ -266,7 +266,7 @@ const main = async () => { } // biome-ignore lint/suspicious/noConsoleLog: - console.log("Succesfully Resimulated All UserOperations") + console.log("Successfully Resimulated All UserOperations") process.exit(0) }