From df0bd2c32d9146b75f5a8eb88b5f9c99f88f7e23 Mon Sep 17 00:00:00 2001 From: Hoon <48665813+sh-cha@users.noreply.github.com> Date: Fri, 4 Oct 2024 15:50:38 +0900 Subject: [PATCH] emit eventtype update oracle (#112) --- x/ophost/keeper/msg_server.go | 2 +- x/ophost/types/event.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/x/ophost/keeper/msg_server.go b/x/ophost/keeper/msg_server.go index 3f67d64..34dc2cd 100644 --- a/x/ophost/keeper/msg_server.go +++ b/x/ophost/keeper/msg_server.go @@ -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)), )) diff --git a/x/ophost/types/event.go b/x/ophost/types/event.go index 6e36135..86bb644 100644 --- a/x/ophost/types/event.go +++ b/x/ophost/types/event.go @@ -11,6 +11,7 @@ const ( EventTypeUpdateChallenger = "update_challenger" EventTypeUpdateBatchInfo = "update_batch_info" EventTypeUpdateMetadata = "update_metadata" + EventTypeUpdateOracle = "update_oracle" AttributeKeySubmitter = "submitter" AttributeKeyCreator = "creator"