Skip to content

Commit

Permalink
Better name for event
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrit committed Oct 23, 2024
1 parent d44d535 commit c93341e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion module/x/gravity/keeper/contract_call.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (k Keeper) contractCallExecuted(ctx sdk.Context, invalidationScope []byte,
k.CompleteOutgoingTx(ctx, completedCallTx)

ctx.EventManager().EmitEvent(sdk.NewEvent(
types.EventTypeContractCallExecuted,
types.EventTypeContractCallTxCompleted,
sdk.NewAttribute(types.AttributeKeyContractCallInvalidationScope, hex.EncodeToString(invalidationScope)),
sdk.NewAttribute(types.AttributeKeyContractCallInvalidationNonce, fmt.Sprint(invalidationNonce)),
))
Expand Down
2 changes: 1 addition & 1 deletion module/x/gravity/types/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const (
EventTypeBridgeWithdrawalReceived = "withdrawal_received"
EventTypeBridgeDepositReceived = "deposit_received"
EventTypeBridgeWithdrawCanceled = "withdraw_canceled"
EventTypeContractCallExecuted = "contract_call_executed"
EventTypeContractCallTxCompleted = "contract_call_tx_completed"

AttributeKeyEthereumEventVoteRecordID = "ethereum_event_vote_record_id"
AttributeKeyBatchConfirmKey = "batch_confirm_key"
Expand Down

0 comments on commit c93341e

Please sign in to comment.