From 7bdcac120687602c8384e6b04a63f88aae806fcc Mon Sep 17 00:00:00 2001 From: cgewecke Date: Tue, 21 Apr 2020 13:22:07 -0700 Subject: [PATCH] Update solc 0.6.x test for immutable & solc 0.6.5 (#501) --- test/integration/projects/solc-6/buidler.config.js | 2 +- test/integration/projects/solc-6/contracts/ContractA.sol | 3 +++ test/integration/projects/solc-6/contracts/ContractB.sol | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/test/integration/projects/solc-6/buidler.config.js b/test/integration/projects/solc-6/buidler.config.js index e9183c8..d734848 100644 --- a/test/integration/projects/solc-6/buidler.config.js +++ b/test/integration/projects/solc-6/buidler.config.js @@ -5,6 +5,6 @@ usePlugin("@nomiclabs/buidler-truffle5"); module.exports={ defaultNetwork: "buidlerevm", solc: { - version: "0.6.2" + version: "0.6.5" } }; diff --git a/test/integration/projects/solc-6/contracts/ContractA.sol b/test/integration/projects/solc-6/contracts/ContractA.sol index fa2bec2..c490583 100644 --- a/test/integration/projects/solc-6/contracts/ContractA.sol +++ b/test/integration/projects/solc-6/contracts/ContractA.sol @@ -9,6 +9,9 @@ contract ContractA is ContractB { uint counter; uint errorCount; + uint private immutable _a = 100; + uint private immutable override _b = 100; + modifier overridden() override { require(true); _; diff --git a/test/integration/projects/solc-6/contracts/ContractB.sol b/test/integration/projects/solc-6/contracts/ContractB.sol index 5dd0b63..a56dbbc 100644 --- a/test/integration/projects/solc-6/contracts/ContractB.sol +++ b/test/integration/projects/solc-6/contracts/ContractB.sol @@ -3,6 +3,7 @@ pragma solidity ^0.6.0; contract ContractB { uint value; + uint b; constructor() public { }