Skip to content

Commit

Permalink
Merge pull request #420 from hangts/master
Browse files Browse the repository at this point in the history
Bugfix MsgSwapFeeToken
  • Loading branch information
hangts authored Jul 8, 2024
2 parents 0e09b3d + b3a19dc commit 02ac1b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/src/types/token.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ var MsgSwapFeeToken = exports.MsgSwapFeeToken = /*#__PURE__*/function (_Msg6) {
value: function getModel() {
var msg = new (this.constructor.getModelClass())().setFeePaid(_helper.TxModelCreator.createCoinModel(this.value.fee_paid.denom, this.value.fee_paid.amount)).setSender(this.value.sender);
if (this.value.recipient) {
msg.setRecipient(this.value.recipient);
msg.setReceiver(this.value.recipient);
}
return msg;
}
Expand Down
3 changes: 2 additions & 1 deletion src/types/token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,8 @@ export class MsgSwapFeeToken extends Msg {
.setFeePaid(TxModelCreator.createCoinModel(this.value.fee_paid.denom, this.value.fee_paid.amount))
.setSender(this.value.sender);
if (this.value.recipient) {
msg.setRecipient(this.value.recipient);
msg.setReceiver(this.value.recipient);

}
return msg;
}
Expand Down

0 comments on commit 02ac1b8

Please sign in to comment.