Nested xCalls
xCall in xReceive
contract Target is IXReceiver {
function xReceive(
bytes32 _transferId,
uint256 _amount,
address _asset,
address _originSender,
uint32 _origin,
bytes memory _callData
) external returns (bytes memory) {
// After handling the first xcall...
...
// Send another xcall within the xReceive function!
connext.xcall{value: relayerFee}(...);
}
}Last updated