Skip to content

Commit

Permalink
fix(testutil):remove inflation generation for genfile panic (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
leonz789 authored Apr 16, 2024
1 parent 458ffd9 commit c057736
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions testutil/network/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import (
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
govv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
inflationtypes "github.com/evmos/evmos/v14/x/inflation/types"

"github.com/evmos/evmos/v14/server"
evmtypes "github.com/evmos/evmos/v14/x/evm/types"
Expand Down Expand Up @@ -212,12 +211,6 @@ func initGenFiles(cfg Config, genAccounts []authtypes.GenesisAccount, genBalance
govGenState.Params.MinDeposit[0].Denom = cfg.BondDenom
cfg.GenesisState[govtypes.ModuleName] = cfg.Codec.MustMarshalJSON(&govGenState)

var inflationGenState inflationtypes.GenesisState
cfg.Codec.MustUnmarshalJSON(cfg.GenesisState[inflationtypes.ModuleName], &inflationGenState)

inflationGenState.Params.MintDenom = cfg.BondDenom
cfg.GenesisState[inflationtypes.ModuleName] = cfg.Codec.MustMarshalJSON(&inflationGenState)

var crisisGenState crisistypes.GenesisState
cfg.Codec.MustUnmarshalJSON(cfg.GenesisState[crisistypes.ModuleName], &crisisGenState)

Expand Down

0 comments on commit c057736

Please sign in to comment.