diff --git a/contracts/mocks/ClonesMock.sol b/contracts/mocks/ClonesMock.sol index 0564f16b2..7a2e3d352 100644 --- a/contracts/mocks/ClonesMock.sol +++ b/contracts/mocks/ClonesMock.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.6.0 <0.9.0; +pragma solidity ^0.8.0; import "../proxy/Clones.sol"; import "../utils/Address.sol"; diff --git a/contracts/proxy/Clones.sol b/contracts/proxy/Clones.sol index 82e404fd0..010eae958 100644 --- a/contracts/proxy/Clones.sol +++ b/contracts/proxy/Clones.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.6.0 <0.9.0; +pragma solidity ^0.8.0; /** * @dev https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for diff --git a/contracts/token/ERC20/ERC20Capped.sol b/contracts/token/ERC20/ERC20Capped.sol index 7856b5827..bef65cf5e 100644 --- a/contracts/token/ERC20/ERC20Capped.sol +++ b/contracts/token/ERC20/ERC20Capped.sol @@ -37,7 +37,7 @@ abstract contract ERC20Capped is ERC20 { super._beforeTokenTransfer(from, to, amount); if (from == address(0)) { // When minting tokens - require(totalSupply() + amount <= _cap, "ERC20Capped: cap exceeded"); + require(totalSupply() + amount <= cap(), "ERC20Capped: cap exceeded"); } } } diff --git a/contracts/utils/Context.sol b/contracts/utils/Context.sol index 274cec473..b8fca57b0 100644 --- a/contracts/utils/Context.sol +++ b/contracts/utils/Context.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.6.0 <0.9.0; +pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the