From 52d5650ad69d38f77bfff4724abcb47b400388d8 Mon Sep 17 00:00:00 2001 From: lumtis Date: Mon, 1 Jul 2024 19:36:02 +0200 Subject: [PATCH] update comment --- x/authority/keeper/chain_info.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/x/authority/keeper/chain_info.go b/x/authority/keeper/chain_info.go index 5dc7144560..b3c21f6404 100644 --- a/x/authority/keeper/chain_info.go +++ b/x/authority/keeper/chain_info.go @@ -27,11 +27,13 @@ func (k Keeper) GetChainInfo(ctx sdk.Context) (val types.ChainInfo, found bool) } // GetAdditionalChainList returns the list of chains in chain info object +// additional chains are additional static chain information stored on-chain used in addition with the default chain information +// this list allow to add new chain support without doing an upgrade // returns empty list if no chains are present func (k Keeper) GetAdditionalChainList(ctx sdk.Context) []chains.Chain { chainInfo, found := k.GetChainInfo(ctx) if !found { - return + return []chains.Chain{} } return chainInfo.Chains }