Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

[x/evm] move the SetParams execution location in InitGenesis #685

Merged
merged 2 commits into from
Jan 4, 2021
Merged
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
3 changes: 2 additions & 1 deletion x/evm/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import (

// InitGenesis initializes genesis state based on exported genesis
func InitGenesis(ctx sdk.Context, k Keeper, accountKeeper types.AccountKeeper, data GenesisState) []abci.ValidatorUpdate { // nolint: interfacer
k.SetParams(ctx, data.Params)

evmDenom := data.Params.EvmDenom

for _, account := range data.Accounts {
Expand Down Expand Up @@ -55,7 +57,6 @@ func InitGenesis(ctx sdk.Context, k Keeper, accountKeeper types.AccountKeeper, d
}

k.SetChainConfig(ctx, data.ChainConfig)
k.SetParams(ctx, data.Params)

// set state objects and code to store
_, err = k.Commit(ctx, false)
Expand Down