Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Commit

Permalink
Fix generic message handler type
Browse files Browse the repository at this point in the history
  • Loading branch information
Matija Petrunic committed Oct 1, 2021
1 parent 99b7a45 commit 84e63b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chains/evm/voter/message-handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func ERC721MessageHandler(msg *relayer.Message, handlerAddr, bridgeAddress commo
return NewProposal(msg.Source, msg.DepositNonce, msg.ResourceId, data.Bytes(), handlerAddr, bridgeAddress), nil
}

func GenericMessageHandler(msg *relayer.Message, handlerAddr, bridgeAddress common.Address) (*Proposal, error) {
func GenericMessageHandler(msg *relayer.Message, handlerAddr, bridgeAddress common.Address) (Proposer, error) {
if len(msg.Payload) != 1 {
return nil, errors.New("malformed payload. Len of payload should be 1")
}
Expand Down

0 comments on commit 84e63b4

Please sign in to comment.