Skip to content

Commit

Permalink
Merge pull request #1 from HaoyangLiu/haoyang/deps
Browse files Browse the repository at this point in the history
R4R: Change the condition for fee preprocessing
  • Loading branch information
MrXJC committed Oct 30, 2018
2 parents c0aa619 + dae61b3 commit 3ee68d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Gopkg.lock

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

2 changes: 1 addition & 1 deletion baseapp/baseapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ func (app *BaseApp) runTx(mode RunTxMode, txBytes []byte, tx sdk.Tx) (result sdk
}

// run the fee handler
if app.feePreprocessHandler != nil && mode == RunTxModeCheck {
if app.feePreprocessHandler != nil && ctx.BlockHeight() != 0 {
err := app.feePreprocessHandler(ctx, tx)
if err != nil {
return sdk.ErrInvalidCoins(err.Error()).Result()
Expand Down

0 comments on commit 3ee68d6

Please sign in to comment.