Fix deprecation warnings (#2115)
* Fix deprecation warnings * Workaround linter bug
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user