Skip to content

Commit

Permalink
fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
onemicky committed Jun 11, 2024
1 parent 4233559 commit 8cc2bcc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/lib/contracts/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ export function getBestNonce(providers: Wallet[]): Promise<number> {
}
};

let timer = setTimeout(handleResolve, MAX_WAIT);
let timerId = setTimeout(handleResolve, MAX_WAIT);

const setResolveTimeout = (t: number) => {
clearTimeout(timer);
const setResolveTimeout = (time: number) => {
clearTimeout(timerId);

if (resolved) return;

if (t) {
timer = setTimeout(handleResolve, t);
if (time) {
timerId = setTimeout(handleResolve, time);
} else {
handleResolve();
}
Expand Down

0 comments on commit 8cc2bcc

Please sign in to comment.