Skip to content

Commit

Permalink
refactor: rename param and fix import path
Browse files Browse the repository at this point in the history
  • Loading branch information
genaroibc committed Dec 23, 2024
1 parent 2531918 commit e4dea26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/handlers/evm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export type OverrideParams = GasData;

export type ExecutionSettings = {
infiniteApproval?: boolean;
approvalWaitTime?: number;
approvalWaitMs?: number;
};

export type CosmosSigner = SigningStargateClient;
Expand Down

0 comments on commit e4dea26

Please sign in to comment.