Function: forceResumeReceive(uint16 _srcChainId, bytes _srcAddress)
This allows anyone to call this function to delete stored payload to force resume cross-chain messaging communication.
Inputs
_srcChainIdControl: Full control by the caller.
Constraints: There are no constraints.
Impact: The
storedPayloadassociated with this_srcChainIdand_srcAddresswill be deleted from the lzEndpoint contract.
_srcAddressControl: Full control by the caller.
Constraints: There are no constraints.
Impact: The
storedPayloadassociated with this_srcChainIdand_srcAddresswill be deleted from the lzEndpoint contract.
Branches and code coverage
No tests have been implemented for this function.
Function call analysis
ILayerZeroEndpoint(this.lzEndpointAddress).forceResumeReceive(_srcChainId, _srcAddress)What is controllable?
_srcChainIdand_srcAddressare controlled by the caller.If the return value is controllable, how is it used and how can it go wrong? There is no return value.
What happens if it reverts, reenters or does other unusual control flow? The function will revert if there is not stored payload for
_srcAddressand_srcChainIdin the lzEndpoint contract.