-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
msg.ValidateBasic
is not called in ante handler
#12607
Comments
I'm pretty sure it's called here: Line 645 in 2b7aca7
Do you have a branch with a reproducible test that sends a |
I see, I was working on some ante handler related unit tests, and surprised to find it's not called there. Is there a particular reason that tx and msg's |
No reason, other than confusing code design. One proposal was for baseapp to do almost nothing (other than holding a reference to the antehandler stack), and putting all logic into antehandlers. It was attempted in the middlewares ADR, but reverted. I propose to close this issue, and follow-up in #11955 ? |
👌 |
Summary of Bug
Is it expected that
msg.ValidateBasic
is not called in ante handler, it only callstx.ValidateBasic
which don't call msgs's.I tried this to verify, patch
TestMsg
as follows:And run
go test -v ./x/auth/ante/...
, all tests still passes.Version
main/0.46/0.45
Steps to Reproduce
For Admin Use
The text was updated successfully, but these errors were encountered: