Merge PR #5268: fix IncrementSequenceDecorator gas estimate

This commit is contained in:
Alexander Bezobchuk 2019-10-31 16:08:35 -04:00 committed by GitHub
parent 3099b42aa1
commit 02c6c9fafd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ func NewIncrementSequenceDecorator(ak keeper.AccountKeeper) IncrementSequenceDec
func (isd IncrementSequenceDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error) {
// no need to increment sequence on CheckTx or RecheckTx
if ctx.IsCheckTx() {
if ctx.IsCheckTx() && !simulate {
return next(ctx, tx, simulate)
}