From 27f59e0d248433b7d4687733892e3a37fcaf971a Mon Sep 17 00:00:00 2001 From: Teddy Ding Date: Tue, 24 Oct 2023 15:13:18 -0400 Subject: [PATCH] nits --- protocol/x/bridge/app_test.go | 2 +- protocol/x/delaymsg/types/keys.go | 7 ------- protocol/x/delaymsg/types/logs.go | 8 ++++++++ 3 files changed, 9 insertions(+), 8 deletions(-) create mode 100644 protocol/x/delaymsg/types/logs.go diff --git a/protocol/x/bridge/app_test.go b/protocol/x/bridge/app_test.go index df822a2b6c..233faab036 100644 --- a/protocol/x/bridge/app_test.go +++ b/protocol/x/bridge/app_test.go @@ -72,7 +72,7 @@ func TestBridge_Success(t *testing.T) { blockTime: time.Now(), expectNonEmptyBridgeTx: true, }, - "Success: 1 bridge event with 0 coin denom, delay 5 blocks": { + "Success: 1 bridge event with 0 coin amount, delay 5 blocks": { bridgeEvents: []bridgetypes.BridgeEvent{ constants.BridgeEvent_Id4_Height0_EmptyCoin, }, diff --git a/protocol/x/delaymsg/types/keys.go b/protocol/x/delaymsg/types/keys.go index 1677a21e10..dcd2aa2c7c 100644 --- a/protocol/x/delaymsg/types/keys.go +++ b/protocol/x/delaymsg/types/keys.go @@ -20,10 +20,3 @@ const ( // NextDelayedMessageIdKey is the key to retrieve next delayed message id. NextDelayedMessageIdKey = "NextDelayedMessageId" ) - -// Log -const ( - IdLogKey = "id" - MessageContentLogKey = "message_content" - MessageTypeUrlLogKey = "message_type_url" -) diff --git a/protocol/x/delaymsg/types/logs.go b/protocol/x/delaymsg/types/logs.go new file mode 100644 index 0000000000..888531d5d3 --- /dev/null +++ b/protocol/x/delaymsg/types/logs.go @@ -0,0 +1,8 @@ +package types + +// Log +const ( + IdLogKey = "id" + MessageContentLogKey = "message_content" + MessageTypeUrlLogKey = "message_type_url" +)