Skip to content

Commit

Permalink
fix gatewayevm deposited handling (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito authored Aug 20, 2024
1 parent 2a68176 commit 7c05d77
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/localnet/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,11 +358,11 @@ export const initLocalnet = async (port: number) => {
context
)}), zrc20: ${zrc20}, amount: ${amount}, message: ${message})`
);
const executeTx = await (protocolContracts.gatewayZEVM as any)
const depositAndCallTx = await (protocolContracts.gatewayZEVM as any)
.connect(fungibleModuleSigner)
.execute(context, zrc20, amount, receiver, message, deployOpts);
.depositAndCall(context, zrc20, amount, receiver, message, deployOpts);

await executeTx.wait();
await depositAndCallTx.wait();
const logs = await provider.getLogs({
address: receiver,
fromBlock: "latest",
Expand All @@ -374,7 +374,6 @@ export const initLocalnet = async (port: number) => {
`Event from onCrossChainCall: ${JSON.stringify(data)}`
);
});
await executeTx.wait();
}
} catch (e: any) {
logErr("ZetaChain", `Error executing onCrossChainCall: ${e}`);
Expand Down

0 comments on commit 7c05d77

Please sign in to comment.