Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
- [\#727](https://github.com/cosmos/evm/pull/727) Avoid nil pointer for `tx evm raw` due to uninitialized EVM coin info.
- [\#730](https://github.com/cosmos/evm/pull/730) Fix panic if evm mempool not used.
- [\#733](https://github.com/cosmos/evm/pull/733) Avoid rejecting tx with unsupported extension option for ExtensionOptionDynamicFeeTx.
- [\#736](https://github.com/cosmos/evm/pull/736) Add InitEvmCoinInfo upgrade to avoid panic when denom is not registered.

### IMPROVEMENTS

Expand Down
1 change: 1 addition & 0 deletions docs/migrations/v0.4.0_to_v0.5.0_UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ not satisfy the following conditions.
2. Your EVM Denom must have a display denom associated with it in `DenomMetadata`.
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.
3. Your chain is an 18-decimal chain.
4. Call `InitEvmCoinInfo` to initialize EVM coin metadata in the module store.

In your UpgradeHandler:

Expand Down
6 changes: 5 additions & 1 deletion evmd/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package evmd

import (
"context"

banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
"github.com/cosmos/evm/x/vm/types"

Expand Down Expand Up @@ -59,7 +60,10 @@ func (app EVMD) RegisterUpgradeHandlers() {
if err != nil {
return nil, err
}

// Initialize EvmCoinInfo in the module store
if err := app.EVMKeeper.InitEvmCoinInfo(sdkCtx); err != nil {
return nil, err
}
return app.ModuleManager.RunMigrations(ctx, app.Configurator(), fromVM)
},
)
Expand Down
Loading