You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// CheckTx implements the ABCI interface. It runs the "basic checks" to see
// whether or not a transaction can possibly be executed, first decoding, then
// the ante handler (which checks signatures/fees/ValidateBasic), then finally
// the route match to see whether a handler exists.
//
// NOTE:CheckTx does not run the actual Msg handler function(s).
Currently CheckTx does all of what is stated in its godoc except for verifying a router exists for each message! This isn't a big deal or exploitable, but should be fixed nonetheless. I believe we can do this by simply remove the following from BaseApp#runTx:
ifmode==runTxModeCheck {
returnresult
}
This is because BaseApp#runMsgs already has this check and doesn't execute the matched message handler during CheckTx.
Summary of Bug
Currently
CheckTx
does all of what is stated in its godoc except for verifying a router exists for each message! This isn't a big deal or exploitable, but should be fixed nonetheless. I believe we can do this by simply remove the following fromBaseApp#runTx
:This is because
BaseApp#runMsgs
already has this check and doesn't execute the matched message handler duringCheckTx
.Caught by @gamarin2
Version
b2f8c58
For Admin Use
The text was updated successfully, but these errors were encountered: