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

Commit

Permalink
fix: add refund msg.value
Browse files Browse the repository at this point in the history
  • Loading branch information
JayJay1024 committed Mar 28, 2024
1 parent 048b8ee commit 1564be5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bridges/xtoken-next.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,8 @@ export class XTokenNextBridge extends BaseBridge {
BigInt(nonce ?? 0),
feeAndParams.extParams,
],
gas: this.getTxGasLimit(),
value: feeAndParams.fee,
});
return this.publicClient.waitForTransactionReceipt({ hash });
}
Expand Down Expand Up @@ -372,6 +374,8 @@ export class XTokenNextBridge extends BaseBridge {
BigInt(nonce ?? 0),
feeAndParams.extParams,
],
gas: this.getTxGasLimit(),
value: feeAndParams.fee,
});
return this.publicClient.waitForTransactionReceipt({ hash });
}
Expand Down

0 comments on commit 1564be5

Please sign in to comment.