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);