Function: receiveMessage(OrderlyCrossChainMessage.MessageV1 message, byte[] payload)
This allows receiving a message from the relay.
Inputs
message
Control: Fully controlled by the relay.
Constraints: None.
Impact: The message to be received.
payload
Control: Fully controlled by the relay.
Constraints: None.
Impact: The payload to be received.
Branches and code coverage
Intended branches
Assure that correct
payloadDataType
is used. Currenlty it is not checked.Assumes that the message and payload have been validated before calling this function.
Assure that the destination chain ID matches the current chain ID.
Forward the withdrawal to the vault.
Negative behavior
No one other than the
crossChainRelay
can call this function.