From 37447f00ba6668d9b1d45c3cb62259659c7a1bc3 Mon Sep 17 00:00:00 2001 From: Denis Fadeev Date: Thu, 17 Oct 2024 20:16:10 +0300 Subject: [PATCH] fix --- packages/localnet/src/handleOnEVMDeposited.ts | 2 +- packages/localnet/src/handleOnRevertEVM.ts | 13 ++----------- packages/localnet/src/handleOnZEVMWithdrawn.ts | 1 + 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/packages/localnet/src/handleOnEVMDeposited.ts b/packages/localnet/src/handleOnEVMDeposited.ts index 2ab4b98..409fa72 100644 --- a/packages/localnet/src/handleOnEVMDeposited.ts +++ b/packages/localnet/src/handleOnEVMDeposited.ts @@ -160,7 +160,7 @@ export const handleOnEVMDeposited = async ({ err, tss, isGas, - token: "", + token, provider, protocolContracts, exitOnError, diff --git a/packages/localnet/src/handleOnRevertEVM.ts b/packages/localnet/src/handleOnRevertEVM.ts index 3a08d9b..8edc0fd 100644 --- a/packages/localnet/src/handleOnRevertEVM.ts +++ b/packages/localnet/src/handleOnRevertEVM.ts @@ -52,22 +52,13 @@ export const handleOnRevertEVM = async ({ deployOpts, }); } else { - console.log( - "!!!", - revertAddress, - token, - amount, - "0x", - revertContext, - deployOpts - ); - tx = await protocolContracts.custody // this is failing + tx = await protocolContracts.custody .connect(tss) .withdrawAndRevert( revertAddress, token, amount, - "", + "0x", revertContext, deployOpts ); diff --git a/packages/localnet/src/handleOnZEVMWithdrawn.ts b/packages/localnet/src/handleOnZEVMWithdrawn.ts index ded8934..809b145 100644 --- a/packages/localnet/src/handleOnZEVMWithdrawn.ts +++ b/packages/localnet/src/handleOnZEVMWithdrawn.ts @@ -55,6 +55,7 @@ export const handleOnZEVMWithdrawn = async ({ await executeTx.wait(); } else { const erc20 = getERC20ByZRC20(zrc20); + console.log("!!!", receiver, erc20, amount, message, deployOpts); const executeTx = await protocolContracts.custody .connect(tss) .withdrawAndCall(receiver, erc20, amount, message, deployOpts);