From 819e03dfdec4eb3505df4a01a4e9382e7f55119e Mon Sep 17 00:00:00 2001 From: beer-1 Date: Tue, 3 Sep 2024 18:18:34 +0900 Subject: [PATCH] fix event types --- 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 6903b1b..acf33a6 100644 --- a/x/ophost/keeper/msg_server.go +++ b/x/ophost/keeper/msg_server.go @@ -564,7 +564,7 @@ func (ms MsgServer) UpdateMetadata(ctx context.Context, req *types.MsgUpdateMeta } sdk.UnwrapSDKContext(ctx).EventManager().EmitEvent(sdk.NewEvent( - types.EventTypeUpdateBatchInfo, + types.EventTypeUpdateMetadata, sdk.NewAttribute(types.AttributeKeyBridgeId, strconv.FormatUint(bridgeId, 10)), sdk.NewAttribute(types.AttributeKeyFinalizedOutputIndex, strconv.FormatUint(finalizedOutputIndex, 10)), sdk.NewAttribute(types.AttributeKeyFinalizedL2BlockNumber, strconv.FormatUint(finalizedOutput.L2BlockNumber, 10)), diff --git a/x/ophost/types/event.go b/x/ophost/types/event.go index 18c418f..6e36135 100644 --- a/x/ophost/types/event.go +++ b/x/ophost/types/event.go @@ -10,6 +10,7 @@ const ( EventTypeUpdateProposer = "update_proposer" EventTypeUpdateChallenger = "update_challenger" EventTypeUpdateBatchInfo = "update_batch_info" + EventTypeUpdateMetadata = "update_metadata" AttributeKeySubmitter = "submitter" AttributeKeyCreator = "creator"