Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
fix: correct redeem original token
Browse files Browse the repository at this point in the history
  • Loading branch information
JayJay1024 committed Mar 28, 2024
1 parent c7faeba commit 27ed24e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bridges/xtoken-next.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,8 @@ export class XTokenNextBridge extends BaseBridge {
this.contract &&
this.publicClient &&
this.walletClient &&
this.sourceToken
this.sourceToken &&
this.targetToken
) {
let originalSender = record.sender;
if (this.sourceToken?.type === "native" || this.targetToken?.type === "native") {
Expand Down Expand Up @@ -341,7 +342,7 @@ export class XTokenNextBridge extends BaseBridge {
functionName: "rollbackBurnAndXUnlock",
args: [
BigInt(this.targetChain.id),
this.sourceToken.inner,
this.targetToken.inner,
originalSender,
pRecipient,
record.sender,
Expand Down

0 comments on commit 27ed24e

Please sign in to comment.