Skip to content

Commit

Permalink
feat: migration, queries, cli
Browse files Browse the repository at this point in the history
  • Loading branch information
johnletey committed Oct 23, 2024
1 parent 478d2e3 commit de5febf
Show file tree
Hide file tree
Showing 19 changed files with 3,724 additions and 112 deletions.
5 changes: 4 additions & 1 deletion ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

// TxFeeChecker returns a custom ante.TxFeeChecker that ensures the fees for a
// given transaction respect the gas prices set in the GlobalFee module.
func TxFeeChecker(keeper keeper.Keeper) ante.TxFeeChecker {
func TxFeeChecker(keeper *keeper.Keeper) ante.TxFeeChecker {
return func(ctx sdk.Context, tx sdk.Tx) (sdk.Coins, int64, error) {
feeTx, ok := tx.(sdk.FeeTx)
if !ok {
Expand All @@ -47,6 +47,9 @@ func TxFeeChecker(keeper keeper.Keeper) ante.TxFeeChecker {
if err != nil {
return nil, 0, err
}
if len(requiredFees) == 0 {
return sdk.Coins{}, 0, nil
}

fees := feeTx.GetFee()
sufficientFees := false
Expand Down
59 changes: 28 additions & 31 deletions api/v1/genesis.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 24 additions & 28 deletions api/v1/globalfee.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit de5febf

Please sign in to comment.