Skip to content

Commit

Permalink
Rename message handler in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mpetrun5 committed Oct 2, 2023
1 parent 7b14fc0 commit 68efd2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chains/substrate/executor/message-handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (s *MessageHandlerTestSuite) TestSuccesfullyRegisterFungibleTransferMessage

depositMessageHandler := executor.NewSubstrateMessageHandler()
// Register FungibleTransferMessageHandler function
depositMessageHandler.RegisterMessageHandler("fungible", ExampleMessageHandler)
depositMessageHandler.RegisterMessageHandler("fungible", FungibleMessageHandler)
prop1, err1 := depositMessageHandler.HandleMessage(messageData)
s.Nil(err1)
s.NotNil(prop1)
Expand All @@ -77,7 +77,7 @@ func (s *MessageHandlerTestSuite) TestSuccesfullyRegisterFungibleTransferMessage
s.NotNil(err2)
}

func ExampleMessageHandler(m *types.Message) (*types.Proposal, error) {
func FungibleMessageHandler(m *types.Message) (*types.Proposal, error) {
if len(m.Payload) != 2 {
return nil, errors.New("malformed payload. Len of payload should be 2")
}
Expand Down

0 comments on commit 68efd2c

Please sign in to comment.