-
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
refactor!: use injected encoding params in simapp #12717
Conversation
legacyAmino
in simapp7226c70
to
dd98b4a
Compare
encodingConfig := simapp.MakeTestEncodingConfig() | ||
func NewRootCmd() *cobra.Command { | ||
// we "pre"-instantiate the application for getting the injected/configured encoding configuration | ||
tempApp := simapp.NewSimApp(log.NewNopLogger(), dbm.NewMemDB(), nil, true, simutil.EmptyAppOptions{}) |
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.
Actually, with the previous behavior we were never certain that the InterfaceRegistry
, AppCodec
or TxConfig
were identical with the encoding config when using app wiring (as these were injected). This fixes it and as well ensures that we use the same params for the legacy app.
24697d6
to
2b885cb
Compare
75e0862
to
2b885cb
Compare
2b885cb
to
46613ad
Compare
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.
utACK. the clean makes seperation better
Codecov Report
@@ Coverage Diff @@
## main #12717 +/- ##
=======================================
Coverage ? 56.36%
=======================================
Files ? 648
Lines ? 55340
Branches ? 0
=======================================
Hits ? 31190
Misses ? 21631
Partials ? 2519
|
* refactor!: use injected encoding params in simapp * add upgrading.md entry
Description
Closes: #XXXX
Investigating the possibility of using injected encoding params in
NewSimApp
and simplifyNewSimApp
constructor arguments.Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change