func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) {
	for _, info := range genState.Infos {
		err := k.SetChainInfo(ctx, info)
		if err != nil {
			panic(err)
		}
	}
}
InitGenesis initializes the capability module's state from a provided genesis
state.
package cns
import (
	sdk "github.com/cosmos/cosmos-sdk/types"
	"github.com/tendermint/cns/x/cns/keeper"
	"github.com/tendermint/cns/x/cns/types"
)