Skip to content

Commit

Permalink
use the fee denom if set
Browse files Browse the repository at this point in the history
  • Loading branch information
aljo242 committed Aug 23, 2024
1 parent 8f27259 commit 6326c15
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x/feemarket/ante/fee.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ func (dfd feeMarketCheckDecorator) anteHandle(ctx sdk.Context, tx sdk.Tx, simula
payCoin := sdk.NewCoin(params.FeeDenom, sdkmath.ZeroInt())
if !simulate {
payCoin = feeCoins[0]
} else if len(feeCoins) == 1 { // case where a denom was specified for this simulation
payCoin.Denom = feeCoins[0].Denom
}

feeGas := int64(feeTx.GetGas())
Expand Down
3 changes: 3 additions & 0 deletions x/feemarket/post/fee.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ func (dfd FeeMarketDeductDecorator) PostHandle(ctx sdk.Context, tx sdk.Tx, simul
)
if !simulate {
payCoin = feeCoins[0]
} else if len(feeCoins) == 1 { // case where a denom was specified for this simulation
payCoin.Denom = feeCoins[0].Denom
tip.Denom = feeCoins[0].Denom
}

feeGas := int64(feeTx.GetGas())
Expand Down

0 comments on commit 6326c15

Please sign in to comment.