Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
axelKingsley committed Nov 5, 2024
1 parent 7806b1d commit 1617aeb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions core/types/interoptypes/interop_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func TestInteropMessageFormatEdgeCases(t *testing.T) {
log: &types.Log{
Address: params.InteropCrossL2InboxAddress,
Topics: []common.Hash{
common.BytesToHash(interoptypes.ExecutingMessageEventTopic[:]),
common.BytesToHash(ExecutingMessageEventTopic[:]),
},
Data: make([]byte, 32*5),
},
Expand All @@ -97,7 +97,7 @@ func TestInteropMessageFormatEdgeCases(t *testing.T) {
log: &types.Log{
Address: params.InteropCrossL2InboxAddress,
Topics: []common.Hash{
common.BytesToHash(interoptypes.ExecutingMessageEventTopic[:]),
common.BytesToHash(ExecutingMessageEventTopic[:]),
common.BytesToHash([]byte("payloadHash")),
common.BytesToHash([]byte("extra")),
},
Expand All @@ -110,7 +110,7 @@ func TestInteropMessageFormatEdgeCases(t *testing.T) {
log: &types.Log{
Address: params.InteropCrossL2InboxAddress,
Topics: []common.Hash{
common.BytesToHash(interoptypes.ExecutingMessageEventTopic[:]),
common.BytesToHash(ExecutingMessageEventTopic[:]),
common.BytesToHash([]byte("payloadHash")),
},
Data: make([]byte, 32*4), // One word too short
Expand All @@ -122,7 +122,7 @@ func TestInteropMessageFormatEdgeCases(t *testing.T) {
log: &types.Log{
Address: params.InteropCrossL2InboxAddress,
Topics: []common.Hash{
common.BytesToHash(interoptypes.ExecutingMessageEventTopic[:]),
common.BytesToHash(ExecutingMessageEventTopic[:]),
common.BytesToHash([]byte("payloadHash")),
},
Data: make([]byte, 32*6), // One word too long
Expand All @@ -134,7 +134,7 @@ func TestInteropMessageFormatEdgeCases(t *testing.T) {
log: &types.Log{
Address: params.InteropCrossL2InboxAddress,
Topics: []common.Hash{
common.BytesToHash(interoptypes.ExecutingMessageEventTopic[:]),
common.BytesToHash(ExecutingMessageEventTopic[:]),
common.BytesToHash([]byte("payloadHash")),
},
Data: func() []byte {
Expand All @@ -150,7 +150,7 @@ func TestInteropMessageFormatEdgeCases(t *testing.T) {
log: &types.Log{
Address: params.InteropCrossL2InboxAddress,
Topics: []common.Hash{
common.BytesToHash(interoptypes.ExecutingMessageEventTopic[:]),
common.BytesToHash(ExecutingMessageEventTopic[:]),
common.BytesToHash([]byte("payloadHash")),
},
Data: func() []byte {
Expand All @@ -165,7 +165,7 @@ func TestInteropMessageFormatEdgeCases(t *testing.T) {

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
var msg interoptypes.Message
var msg Message
err := msg.DecodeEvent(tt.log.Topics, tt.log.Data)
if tt.expectedError != "" {
require.Error(t, err)
Expand Down

0 comments on commit 1617aeb

Please sign in to comment.