Skip to content

Commit

Permalink
Fix: ibc_sudo_address constant
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Nov 1, 2024
1 parent 81c31b4 commit 219d08c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/indexer/decode/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/indexer/decode/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 219d08c

Please sign in to comment.