Function: depositForBurnWithCaller(uint256 amount, uint32 destinationDomain, bytes32 mintRecipient, address burnToken, bytes32 destinationCaller)
This function provides the same functionality as the depositForBurn
function, but the caller controls the destinationCaller
address. The destinationCaller
address specifies the particular caller on the destination domain. It is assumed that, if destinationCaller
is set to bytes32(0)
, any address can call receiveMessage()
during the token receiving process.