From 591c136dcb159601d723e87423ca3995c6bbd474 Mon Sep 17 00:00:00 2001 From: mmsqe Date: Fri, 21 Apr 2023 22:03:25 +0800 Subject: [PATCH] allow register with extra_codecs (#1175) --- cregistry/chain_info.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cregistry/chain_info.go b/cregistry/chain_info.go index 509b13271..20a51d484 100644 --- a/cregistry/chain_info.go +++ b/cregistry/chain_info.go @@ -83,6 +83,7 @@ type ChainInfo struct { Provider string `json:"provider"` } `json:"rest"` } `json:"apis"` + ExtraCodecs []string `json:"extra_codecs"` } // NewChainInfo returns a ChainInfo that is uninitialized other than the provided zap.Logger. @@ -266,5 +267,6 @@ func (c ChainInfo) GetChainConfig(ctx context.Context) (*cosmos.CosmosProviderCo SignModeStr: "direct", Slip44: c.Slip44, SigningAlgorithm: c.SigningAlgorithm, + ExtraCodecs: c.ExtraCodecs, }, nil }