diff --git a/contracts/introspection/ERC165Checker.sol b/contracts/introspection/ERC165Checker.sol index b7db18850..dbf9085e6 100644 --- a/contracts/introspection/ERC165Checker.sol +++ b/contracts/introspection/ERC165Checker.sol @@ -1,4 +1,4 @@ -pragma solidity ^0.6.0; +pragma solidity ^0.6.2; /** * @dev Library used to query support of an interface declared via {IERC165}. @@ -97,7 +97,7 @@ library ERC165Checker { returns (bool, bool) { bytes memory encodedParams = abi.encodeWithSelector(_INTERFACE_ID_ERC165, interfaceId); - (bool success, bytes memory result) = account.staticcall.gas(30000)(encodedParams); + (bool success, bytes memory result) = account.staticcall{ gas: 30000 }(encodedParams); if (result.length < 32) return (false, false); return (success, abi.decode(result, (bool))); } diff --git a/contracts/payment/PullPayment.sol b/contracts/payment/PullPayment.sol index 3cd486fb0..9b4fcb405 100644 --- a/contracts/payment/PullPayment.sol +++ b/contracts/payment/PullPayment.sol @@ -1,4 +1,4 @@ -pragma solidity ^0.6.0; +pragma solidity ^0.6.2; import "./escrow/Escrow.sol"; @@ -62,6 +62,10 @@ contract PullPayment { * @param amount The amount to transfer. */ function _asyncTransfer(address dest, uint256 amount) internal virtual { - _escrow.deposit.value(amount)(dest); + // solhint-disable-previous-line no-unused-vars + + // TODO: remove the previous linter directive once + // https://github.com/protofire/solhint/issues/170 is fixed + _escrow.deposit{ value: amount }(dest); } } diff --git a/contracts/utils/Address.sol b/contracts/utils/Address.sol index 736fa0758..4ae5d8bfc 100644 --- a/contracts/utils/Address.sol +++ b/contracts/utils/Address.sol @@ -1,4 +1,4 @@ -pragma solidity ^0.6.0; +pragma solidity ^0.6.2; /** * @dev Collection of functions related to the address type @@ -52,7 +52,7 @@ library Address { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value - (bool success, ) = recipient.call.value(amount)(""); + (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } }