forked from evmos/ethermint
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Nd unify legacy evm subspace usage (#22)
* enable registration of feemarket legacy param key table registration to prevent panics when using the feemarket keeper with a vanilla subspace * touch up some comments for clarity, remove unused line * add some tests that enforce keeper registration of the key table in addition to ensuring that the migration stays compatible when a subpsace is shared between the module (and thus the migration) and the keeper which is a common setup in app.go * add test for current bug in legacy merge fork block fetching where value is not fetched and converted into new params structure * get tests passing by using true legacy parameters in keeper and converting them to new params; this fixes key table incompatibility with the migration and a bug where the merge split block renamed value is not set from the historical state * refactor legacy param handling in migration (non-state breaking) and in keeper to simplify logic; avoid additional registration of types on proto codec; remove unused v2 migration code; and avoid copying of EIP712 data in parameters during conversion by using the same concrete type * remove dead code * add test to ensure nil params do not panic for legacy historical queries * fix test error from rebasing onto migration paramstore refactor * remove oboselete test now that store migrations use an indepent subpsace and it is not passed as an argument anymore * refactor to use a shared legacy param store to avoid injecting param keys and amino codec through keeper to migrator. Both keeper and migrator are tested to ensure proper key table registraion that does not conflict and to ensure historical params are fetchable * add additional test to ensure store registors it's own key table when needed * remove unused private member
- Loading branch information
Showing
17 changed files
with
625 additions
and
5,219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.