From 1843b3708a3e56bf40d74d8ab216d12c7f746e65 Mon Sep 17 00:00:00 2001 From: Denis Fadeev Date: Tue, 21 Jan 2025 19:21:32 +0300 Subject: [PATCH] chain ID --- packages/localnet/src/handleOnRevertZEVM.ts | 4 +++- packages/localnet/src/handleOnZEVMCalled.ts | 1 + packages/localnet/src/handleOnZEVMWithdrawn.ts | 1 + packages/localnet/src/handleOnZEVMWithdrawnAndCalled.ts | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/localnet/src/handleOnRevertZEVM.ts b/packages/localnet/src/handleOnRevertZEVM.ts index 911c355..21cca6d 100644 --- a/packages/localnet/src/handleOnRevertZEVM.ts +++ b/packages/localnet/src/handleOnRevertZEVM.ts @@ -14,6 +14,7 @@ export const handleOnRevertZEVM = async ({ deployOpts, exitOnError = false, sender, + chainID, }: { revertOptions: any; err: any; @@ -27,6 +28,7 @@ export const handleOnRevertZEVM = async ({ deployOpts: any; exitOnError: boolean; sender: string; + chainID: number; }) => { const callOnRevert = revertOptions[1]; const revertAddress = revertOptions[0]; @@ -71,7 +73,7 @@ export const handleOnRevertZEVM = async ({ asset, amount, true, - 1, + chainID, revertMessage, ]; diff --git a/packages/localnet/src/handleOnZEVMCalled.ts b/packages/localnet/src/handleOnZEVMCalled.ts index d4ae7af..4b11c12 100644 --- a/packages/localnet/src/handleOnZEVMCalled.ts +++ b/packages/localnet/src/handleOnZEVMCalled.ts @@ -82,6 +82,7 @@ export const handleOnZEVMCalled = async ({ deployOpts, exitOnError, sender, + chainID, }); } }; diff --git a/packages/localnet/src/handleOnZEVMWithdrawn.ts b/packages/localnet/src/handleOnZEVMWithdrawn.ts index 226ee05..a472545 100644 --- a/packages/localnet/src/handleOnZEVMWithdrawn.ts +++ b/packages/localnet/src/handleOnZEVMWithdrawn.ts @@ -90,6 +90,7 @@ export const handleOnZEVMWithdrawn = async ({ deployOpts, exitOnError, sender, + chainID, }); } }; diff --git a/packages/localnet/src/handleOnZEVMWithdrawnAndCalled.ts b/packages/localnet/src/handleOnZEVMWithdrawnAndCalled.ts index e567a2c..b4dd581 100644 --- a/packages/localnet/src/handleOnZEVMWithdrawnAndCalled.ts +++ b/packages/localnet/src/handleOnZEVMWithdrawnAndCalled.ts @@ -112,6 +112,7 @@ export const handleOnZEVMWithdrawnAndCalled = async ({ deployOpts, exitOnError, sender, + chainID, }); } };