diff --git a/pkg/indexer/decode/actions.go b/pkg/indexer/decode/actions.go index 591f897..1bc7d62 100644 --- a/pkg/indexer/decode/actions.go +++ b/pkg/indexer/decode/actions.go @@ -886,7 +886,7 @@ func parseIbcSudoChangeAction(body *astria.Action_IbcSudoChange, ctx *Context, a ActionType: action.Type, }) - ctx.AddGenericConstant("ibc_sudo_change", address) + ctx.AddGenericConstant("ibc_sudo_address", address) } return nil diff --git a/pkg/indexer/decode/context.go b/pkg/indexer/decode/context.go index a85d37f..a3b5d40 100644 --- a/pkg/indexer/decode/context.go +++ b/pkg/indexer/decode/context.go @@ -51,7 +51,7 @@ func NewContext(bridgeAssets map[string]string) Context { } func (ctx *Context) AddGenericConstant(key, value string) { - k := fmt.Sprintf("%s-%s", key, value) + k := fmt.Sprintf("%s-%s", key, storageTypes.ModuleNameGeneric) ctx.Constants[k] = &storage.Constant{ Module: storageTypes.ModuleNameGeneric, Name: key,