Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
jscriptcoder committed Jun 12, 2023
1 parent 4dff082 commit f3ebcc2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@
async function ensureCorrectChain(
currentChainId: ChainID,
switchToChainId: ChainID,
wannaBeChainId: ChainID,
pendingTx: Transaction[],
) {
const isCorrectChain = currentChainId === switchToChainId;
const isCorrectChain = currentChainId === wannaBeChainId;
log(`Are we on the correct chain? ${isCorrectChain}`);
if (!isCorrectChain) {
Expand All @@ -96,7 +96,7 @@
});
}
await switchNetwork(switchToChainId);
await switchNetwork(wannaBeChainId);
}
}
Expand Down

0 comments on commit f3ebcc2

Please sign in to comment.