-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Cleanup Baseapp #1400
Cleanup Baseapp #1400
Conversation
d5e3d54
to
2101459
Compare
2101459
to
7c23cef
Compare
Codecov Report
@@ Coverage Diff @@
## develop #1400 +/- ##
===========================================
+ Coverage 63.66% 63.67% +0.01%
===========================================
Files 122 122
Lines 6764 6766 +2
===========================================
+ Hits 4306 4308 +2
Misses 2213 2213
Partials 245 245 |
Dependent on tendermint/tendermint#1803 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice! Except possibly the context passed to the ante handler
baseapp/baseapp.go
Outdated
@@ -505,17 +447,17 @@ func (app *BaseApp) runTx(mode runTxMode, txBytes []byte, tx sdk.Tx) (result sdk | |||
|
|||
// Run the ante handler. | |||
if app.anteHandler != nil { | |||
newCtx, result, abort := app.anteHandler(ctx, tx) | |||
var newCtx sdk.Context |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should the ante handler really get an empty context? why not the ctx
we already populated above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried to modify it, and the test failed :( I don't know why does it affect to the execution but we cannot change it.
0264619
to
fca7277
Compare
fca7277
to
ea9ca6f
Compare
fix lint apply requests revert removing newCtx
Decided to skip codespace removing |
a1e6bb8
to
31b9007
Compare
fix lint apply requests revert removing newCtx refactor fix errors
I'll fix and merge this thanks jooN! |
31b9007
to
4761612
Compare
fix lint apply requests revert removing newCtx refactor fix errors
Closes: #1329