Skip to content

Commit

Permalink
fix(relayer): message data (#15543)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey authored Jan 22, 2024
1 parent bc0ca8d commit 096bdd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/relayer/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func DecodeMessageSentData(event *bridge.BridgeMessageSent) (EventType, Canonica
erc1155ReceiveTokensFunctionSig := "079312bf"

// try to see if its an ERC20
if event.Message.Data != nil && common.BytesToHash(event.Message.Data) != ZeroHash {
if event.Message.Data != nil && common.BytesToHash(event.Message.Data) != ZeroHash && len(event.Message.Data) > 3 {
functionSig := event.Message.Data[:4]

if common.Bytes2Hex(functionSig) == erc20ReceiveTokensFunctionSig {
Expand Down

0 comments on commit 096bdd8

Please sign in to comment.