From 56fbc4a65c23debaac7a247d32e7f04727413ec8 Mon Sep 17 00:00:00 2001 From: beer-1 Date: Tue, 24 Sep 2024 18:35:18 +0900 Subject: [PATCH] fix test --- app/genesis.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/genesis.go b/app/genesis.go index 42f70dba..df0e1350 100644 --- a/app/genesis.go +++ b/app/genesis.go @@ -1,6 +1,7 @@ package app import ( + "encoding/hex" "encoding/json" icacontrollertypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller/types" @@ -106,7 +107,14 @@ func (genState GenesisState) AddMarketData(cdc codec.JSONCodec, ac address.Codec marketGenState.MarketMap = genesis_markets.ToMarketMap(markets) // Skip Admin account. - adminAddr := "init1xhnq6h3v9mwy8mkezxj0nycvm85fnhnuq9ss23" + adminAddrBz, err := hex.DecodeString("35E60D5E2C2EDC43EED911A4F9930CD9E899DE7C") + if err != nil { + panic(err) + } + adminAddr, err := ac.BytesToString(adminAddrBz) + if err != nil { + panic(err) + } marketGenState.Params.MarketAuthorities = []string{adminAddr} marketGenState.Params.Admin = adminAddr