mirror of
				https://github.com/Instadapp/dsa-connectors.git
				synced 2024-07-29 22:37:00 +00:00 
			
		
		
		
	add: conditional statement for selection
This commit is contained in:
		
							parent
							
								
									90e60093f1
								
							
						
					
					
						commit
						cc86425ff1
					
				|  | @ -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)"; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 sanchaymittal
						sanchaymittal