File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 2828- [ \# 727] ( https://github.com/cosmos/evm/pull/727 ) Avoid nil pointer for ` tx evm raw ` due to uninitialized EVM coin info.
2929- [ \# 730] ( https://github.com/cosmos/evm/pull/730 ) Fix panic if evm mempool not used.
3030- [ \# 733] ( https://github.com/cosmos/evm/pull/733 ) Avoid rejecting tx with unsupported extension option for ExtensionOptionDynamicFeeTx.
31+ - [ \# 736] ( https://github.com/cosmos/evm/pull/736 ) Add InitEvmCoinInfo upgrade to avoid panic when denom is not registered.
3132
3233### IMPROVEMENTS
3334
Original file line number Diff line number Diff line change @@ -312,6 +312,7 @@ not satisfy the following conditions.
3123122 . Your EVM Denom must have a display denom associated with it in ` DenomMetadata ` .
313313 1 . The display denom for the EVM Denom must have an accurate decimal value (i.e. for ` uatom ` , ` atom ` must have a decimal value of 6.
3143143 . Your chain is an 18-decimal chain.
315+ 4 . Call ` InitEvmCoinInfo ` to initialize EVM coin metadata in the module store.
315316
316317In your UpgradeHandler:
317318
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package evmd
22
33import (
44 "context"
5+
56 banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
67 "github.com/cosmos/evm/x/vm/types"
78
@@ -59,7 +60,10 @@ func (app EVMD) RegisterUpgradeHandlers() {
5960 if err != nil {
6061 return nil , err
6162 }
62-
63+ // Initialize EvmCoinInfo in the module store
64+ if err := app .EVMKeeper .InitEvmCoinInfo (sdkCtx ); err != nil {
65+ return nil , err
66+ }
6367 return app .ModuleManager .RunMigrations (ctx , app .Configurator (), fromVM )
6468 },
6569 )
You can’t perform that action at this time.
0 commit comments