From c93341e5ee6005ea11b3b15636f28ddeed209bab Mon Sep 17 00:00:00 2001 From: Collin Brittain Date: Wed, 23 Oct 2024 08:48:51 -0500 Subject: [PATCH] Better name for event --- module/x/gravity/keeper/contract_call.go | 2 +- module/x/gravity/types/events.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/x/gravity/keeper/contract_call.go b/module/x/gravity/keeper/contract_call.go index 80834a21a..2f94f4a54 100644 --- a/module/x/gravity/keeper/contract_call.go +++ b/module/x/gravity/keeper/contract_call.go @@ -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)), )) diff --git a/module/x/gravity/types/events.go b/module/x/gravity/types/events.go index 0f66d73c2..979bbac3a 100644 --- a/module/x/gravity/types/events.go +++ b/module/x/gravity/types/events.go @@ -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"