-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
WIP: Pass AnteHandler and TxDecoder in constructor #512
Conversation
Please make sure tests pass before marking it as ready for review. |
) | ||
|
||
func init() { | ||
cdc = MakeTxCodec() |
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.
no globals please. let's just pass it into txDecoder
@@ -53,13 +53,17 @@ type BaseApp struct { | |||
var _ abci.Application = &BaseApp{} | |||
|
|||
// Create and name new BaseApp | |||
func NewBaseApp(name string, logger log.Logger, db dbm.DB) *BaseApp { | |||
func NewBaseApp(name string, logger log.Logger, db dbm.DB, txDecoder sdk.TxDecoder, | |||
ah sdk.AnteHandler) *BaseApp { |
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.
we now allow nil AnteHandler, so lets remove it from the constructor.
|
||
// keys to access the substores | ||
capKeyMainStore *sdk.KVStoreKey | ||
capKeyIBCStore *sdk.KVStoreKey |
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.
better to comment out and add a note about using it in the future instead of just removing
Closing in favour of #559 |
…smos#19314) (cosmos#512) Co-authored-by: MSalopek <matija.salopek994@gmail.com>
closes #480