Skip to content

Commit

Permalink
emit eventtype update oracle (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-cha authored Oct 4, 2024
1 parent ab98308 commit df0bd2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion x/ophost/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ func (ms MsgServer) UpdateOracleConfig(ctx context.Context, req *types.MsgUpdate
}

sdk.UnwrapSDKContext(ctx).EventManager().EmitEvent(sdk.NewEvent(
types.EventTypeUpdateBatchInfo,
types.EventTypeUpdateOracle,
sdk.NewAttribute(types.AttributeKeyBridgeId, strconv.FormatUint(bridgeId, 10)),
sdk.NewAttribute(types.AttributeKeyOracleEnabled, strconv.FormatBool(config.OracleEnabled)),
))
Expand Down
1 change: 1 addition & 0 deletions x/ophost/types/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const (
EventTypeUpdateChallenger = "update_challenger"
EventTypeUpdateBatchInfo = "update_batch_info"
EventTypeUpdateMetadata = "update_metadata"
EventTypeUpdateOracle = "update_oracle"

AttributeKeySubmitter = "submitter"
AttributeKeyCreator = "creator"
Expand Down

0 comments on commit df0bd2c

Please sign in to comment.