Migrate contracts to Solidity 0.7 (#2319)

* Update contract pragmas to solidity 0.7

* Remove internal declaration on constructors

* Reference SafeMath explicitely

* Remove public constructor declaration from abstract contracts

* Remove public constructor declaration from non-abstract contracts
This commit is contained in:
Elena Gesheva
2020-07-30 00:11:32 +03:00
committed by GitHub
parent 09014f90f9
commit 04fc35707d
125 changed files with 194 additions and 193 deletions

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
pragma solidity ^0.7.0;
import "./IERC1155.sol";
import "./IERC1155MetadataURI.sol";
@ -52,7 +52,7 @@ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
/**
* @dev See {_setURI}.
*/
constructor (string memory uri) public {
constructor (string memory uri) {
_setURI(uri);
// register the supported interfaces to conform to ERC1155 via ERC165