From 84e63b4f88ffd2212fa7484dcd1086e3fec58fa1 Mon Sep 17 00:00:00 2001 From: Matija Petrunic Date: Fri, 1 Oct 2021 16:32:39 +0200 Subject: [PATCH] Fix generic message handler type --- chains/evm/voter/message-handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chains/evm/voter/message-handler.go b/chains/evm/voter/message-handler.go index 64b25f25..514fe3eb 100644 --- a/chains/evm/voter/message-handler.go +++ b/chains/evm/voter/message-handler.go @@ -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") }