Skip to content

Commit

Permalink
fix: fix nonce issue with reset
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Aug 19, 2024
1 parent 605795a commit 101e7ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/localnet/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ export const initLocalnet = async (port: number) => {
if (callOnRevert) {
console.log("Tx reverted, calling executeRevert on GatewayEVM...");
try {
(deployer as NonceManager).reset();
await protocolContracts.gatewayEVM
.connect(deployer)
.executeRevert(revertAddress, "0x", revertContext, deployOpts);
Expand All @@ -369,6 +370,7 @@ export const initLocalnet = async (port: number) => {
if (callOnRevert) {
console.log("Tx reverted, calling executeRevert on GatewayZEVM...");
try {
(deployer as NonceManager).reset();
await protocolContracts.gatewayZEVM
.connect(deployer)
.executeRevert(revertAddress, revertContext, deployOpts);
Expand Down

0 comments on commit 101e7ac

Please sign in to comment.