Support compiling with solc 0.7 (#2408)

This commit is contained in:
Francisco Giordano
2020-11-17 21:29:39 -03:00
committed by GitHub
parent 21344b91ed
commit 90ed1af972
128 changed files with 179 additions and 172 deletions

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
pragma solidity >=0.6.0 <0.8.0;
import "./Escrow.sol";

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
pragma solidity >=0.6.0 <0.8.0;
import "../../math/SafeMath.sol";
import "../../access/Ownable.sol";

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
pragma solidity >=0.6.0 <0.8.0;
import "./ConditionalEscrow.sol";
@ -25,11 +25,11 @@ contract RefundEscrow is ConditionalEscrow {
/**
* @dev Constructor.
* @param beneficiary The beneficiary of the deposits.
* @param beneficiary_ The beneficiary of the deposits.
*/
constructor (address payable beneficiary) public {
require(beneficiary != address(0), "RefundEscrow: beneficiary is the zero address");
_beneficiary = beneficiary;
constructor (address payable beneficiary_) public {
require(beneficiary_ != address(0), "RefundEscrow: beneficiary is the zero address");
_beneficiary = beneficiary_;
_state = State.Active;
}