Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.

Commit

Permalink
add mercury height for code (#144)
Browse files Browse the repository at this point in the history
Co-authored-by: meng <[email protected]>
  • Loading branch information
zhongqiuwood and xiangjianmeng authored Aug 23, 2021
1 parent 99eaa4c commit 2c05b4c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions baseapp/baseapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -793,8 +793,10 @@ func (app *BaseApp) runTx(mode runTxMode, txBytes []byte, tx sdk.Tx, height int6
}

if err != nil {
codeSpace, code, info := sdkerrors.ABCIInfo(err, app.trace)
err = sdkerrors.New(codeSpace, abci.CodeTypeNonceInc + code, info)
if sdk.HigherThanMercury(ctx.BlockHeight()) {
codeSpace, code, info := sdkerrors.ABCIInfo(err, app.trace)
err = sdkerrors.New(codeSpace, abci.CodeTypeNonceInc + code, info)
}
}

return gInfo, result, err
Expand Down

0 comments on commit 2c05b4c

Please sign in to comment.