From 1c5320330d5178cf8c00b1ac5bddf916e90628da Mon Sep 17 00:00:00 2001 From: Ruben Date: Sun, 30 Jan 2022 11:05:28 +0200 Subject: [PATCH] Force solidity verion > 0.8.0 to protect against under/overflows --- contract/SimpleNft.sol | 2 +- contract/SimpleNftLowerGas.sol | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contract/SimpleNft.sol b/contract/SimpleNft.sol index 7977bfc..13bbee3 100644 --- a/contract/SimpleNft.sol +++ b/contract/SimpleNft.sol @@ -13,7 +13,7 @@ to the best of the developers' knowledge to work as intended. */ -pragma solidity >=0.7.0 <0.9.0; +pragma solidity >=0.8.0 <0.9.0; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; diff --git a/contract/SimpleNftLowerGas.sol b/contract/SimpleNftLowerGas.sol index 163e0f2..a910b6c 100644 --- a/contract/SimpleNftLowerGas.sol +++ b/contract/SimpleNftLowerGas.sol @@ -15,7 +15,7 @@ using the code for your own project. */ -pragma solidity >=0.7.0 <0.9.0; +pragma solidity >=0.8.0 <0.9.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/Counters.sol";