Skip to content

Commit

Permalink
fix event types
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Sep 3, 2024
1 parent b2d9cd2 commit 819e03d
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 @@ -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)),
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 @@ -10,6 +10,7 @@ const (
EventTypeUpdateProposer = "update_proposer"
EventTypeUpdateChallenger = "update_challenger"
EventTypeUpdateBatchInfo = "update_batch_info"
EventTypeUpdateMetadata = "update_metadata"

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

0 comments on commit 819e03d

Please sign in to comment.