mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
Update contracts/optimism/connectors/connext/main.sol
Co-authored-by: Thrilok kumar <thrilok2000@gmail.com>
This commit is contained in:
parent
07395bf419
commit
91c24842d3
|
@ -34,7 +34,8 @@ abstract contract ConnextResolver is Helpers {
|
|||
|
||||
if (isNative) {
|
||||
_amount = _amount == uint256(-1) ? sub(address(this).balance, params.relayerFee) : _amount;
|
||||
|
||||
params.asset = wethAddr;
|
||||
tokenContract = TokenInterface(params.asset);
|
||||
// xcall does not take native asset, must wrap
|
||||
convertEthToWeth(true, tokenContract, _amount);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user