From e4dea260671e81a6e0df9e8be36ce4f449edb037 Mon Sep 17 00:00:00 2001 From: genaroibc Date: Mon, 23 Dec 2024 14:43:08 -0300 Subject: [PATCH] refactor: rename param and fix import path --- src/handlers/evm/index.ts | 6 +++--- src/types/index.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/handlers/evm/index.ts b/src/handlers/evm/index.ts index 20c4237..0871802 100644 --- a/src/handlers/evm/index.ts +++ b/src/handlers/evm/index.ts @@ -22,7 +22,7 @@ import { } from "../../constants"; import { TokensChains } from "../../utils/TokensChains"; import { Utils } from "./utils"; -import { sleep } from "utils/evm"; +import { sleep } from "../../utils/evm"; const ethersAdapter = new EthersAdapter(); @@ -182,8 +182,8 @@ export class EvmHandler extends Utils { ...overrides, }); - if (executionSettings?.approvalWaitTime != null) { - await sleep(executionSettings.approvalWaitTime); + if (executionSettings?.approvalWaitMs != null) { + await sleep(executionSettings.approvalWaitMs); } await approveTx.wait(); diff --git a/src/types/index.ts b/src/types/index.ts index 499c44e..bcbf621 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -33,7 +33,7 @@ export type OverrideParams = GasData; export type ExecutionSettings = { infiniteApproval?: boolean; - approvalWaitTime?: number; + approvalWaitMs?: number; }; export type CosmosSigner = SigningStargateClient;