From 3c75f56512ababdfbb0cd55c1471cc8ae0913785 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Tue, 22 Oct 2024 11:08:23 +0530 Subject: [PATCH] Populate attributes map index when importing records from genesis --- x/registry/keeper/genesis.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/x/registry/keeper/genesis.go b/x/registry/keeper/genesis.go index 36ec275d..99649a43 100644 --- a/x/registry/keeper/genesis.go +++ b/x/registry/keeper/genesis.go @@ -30,6 +30,11 @@ func (k *Keeper) InitGenesis(ctx sdk.Context, data *registry.GenesisState) error return err } } + + readableRecord := record.ToReadableRecord() + if err := k.processAttributes(ctx, readableRecord.Attributes, record.Id); err != nil { + return err + } } for _, authority := range data.Authorities {