Skip to content

Commit a12b287

Browse files
committed
test(e2e): inject bank denom_metadata for upc into interchaintest genesis (evm v0.5 coin-info)
1 parent b11f641 commit a12b287

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

interchaintest/setup.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,21 @@ var (
6969
cosmos.NewGenesisKV("app_state.feemarket.params.base_fee", "0.000000000000000000"),
7070
cosmos.NewGenesisKV("app_state.evm.params.evm_denom", Denom),
7171
cosmos.NewGenesisKV("app_state.evm.params.active_static_precompiles", Precompiles),
72+
// cosmos/evm v0.5 derives EVM coin info from bank denom metadata at
73+
// InitGenesis (LoadEvmCoinInfo). pchaind init produces no metadata for
74+
// the EVM denom, so inject it here or the node panics on startup with
75+
// "denom metadata upc could not be found".
76+
cosmos.NewGenesisKV("app_state.bank.denom_metadata", []map[string]interface{}{{
77+
"description": "Native token of Push Chain",
78+
"denom_units": []map[string]interface{}{
79+
{"denom": Denom, "exponent": 0, "aliases": []string{}},
80+
{"denom": "pushchain", "exponent": 18, "aliases": []string{}},
81+
},
82+
"base": Denom,
83+
"display": "pushchain",
84+
"name": "Push Chain",
85+
"symbol": "PC",
86+
}}),
7287
}
7388

7489
DefaultChainConfig = ibc.ChainConfig{

0 commit comments

Comments
 (0)