Skip to content

Commit

Permalink
fix: transaction fee in SendToExternal (#877)
Browse files Browse the repository at this point in the history
Co-authored-by: nulnut <[email protected]>
  • Loading branch information
zakir-code and nulnut authored Jan 8, 2025
1 parent d0a7411 commit fdf7355
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/crosschain/keeper/outgoing_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (k Keeper) BuildOutgoingTxBatch(ctx sdk.Context, sender sdk.AccAddress, rec
if err != nil {
return 0, err
}
if err = k.WithdrawBridgeToken(ctx, sender, amount.Amount, bridgeToken); err != nil {
if err = k.WithdrawBridgeToken(ctx, sender, amount.Amount.Add(fee.Amount), bridgeToken); err != nil {
return 0, err
}

Expand Down

0 comments on commit fdf7355

Please sign in to comment.