Skip to main content

GovernorMessengerMock

GovernorMessengerMock#

Can be used as either a Parent or Child messenger mock in unit tests for the Governor Hub and Spoke cross-chain contracts. The reason that this can't also be used for the Oracle Hub and Spoke is that the sendMessageToChild is called with different encoded data in the Oracle versus the Governor.

Functions#

latestCalls() → struct GovernorSpoke.Call[] (external)
sendMessageToChild(bytes data) (external)