Skip to content

Commit

Permalink
fix sui, and remove change on emitter addres sei
Browse files Browse the repository at this point in the history
  • Loading branch information
yuli-ferna committed Sep 21, 2023
1 parent 9864bc8 commit b96cd1d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/hooks/useHandleTransfer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -918,10 +918,11 @@ async function sei(
if (!sequence) {
throw new Error("Sequence not found");
}

const emitterAddress = await getEmitterAddressTerra(tokenBridgeAddress);

await fetchSignedVAA(
CHAIN_ID_SEI,
tokenBridgeAddress,
emitterAddress,
sequence,
enqueueSnackbar,
dispatch
Expand Down Expand Up @@ -973,7 +974,10 @@ async function sui(
additionalPayload?.receivingContract || targetAddress,
undefined,
undefined,
additionalPayload?.payload
additionalPayload?.payload,
undefined,
undefined,
wallet.getAddress()!
);
const response = (
await wallet.signAndSendTransaction({
Expand Down

0 comments on commit b96cd1d

Please sign in to comment.