add: conditional statement for selection

This commit is contained in:
sanchaymittal 2023-05-02 19:02:18 +09:00
parent 90e60093f1
commit cc86425ff1
No known key found for this signature in database
GPG Key ID: D794EEBC262F179E

View File

@ -45,7 +45,14 @@ abstract contract ConnextResolver is Helpers {
params.amount = _amount;
approve(tokenContract, connextAddr, _amount);
_xcall(params);
/// check if user provided relayerFee under native asset or transacting asset
if(params.nativeRelayerFee){
_xcallFeeNativeAsset(params);
}
else{
_xcallFeeTransactingAsseet(params);
}
setUint(setId, _amount);
_eventName = "LogXCall(uint32,address,address,address,uint256,uint256,uint256,uint256)";