Skip to content

Commit

Permalink
emit eventtype update oracle
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-cha committed Sep 30, 2024
1 parent ab98308 commit 102f0ad
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 102f0ad

Please sign in to comment.