Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Oct 17, 2024
1 parent a0be032 commit 37447f0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/localnet/src/handleOnEVMDeposited.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export const handleOnEVMDeposited = async ({
err,
tss,
isGas,
token: "",
token,
provider,
protocolContracts,
exitOnError,
Expand Down
13 changes: 2 additions & 11 deletions packages/localnet/src/handleOnRevertEVM.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down
1 change: 1 addition & 0 deletions packages/localnet/src/handleOnZEVMWithdrawn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 37447f0

Please sign in to comment.