Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Jul 1, 2024
1 parent a7af5d8 commit 52d5650
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x/authority/keeper/chain_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 52d5650

Please sign in to comment.