From cd07313679468fbb2eec3fc8ca790f472d0e3638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Tue, 23 Aug 2022 13:14:19 +0100 Subject: [PATCH] Revert core flag change --- contracts/Contributor.sol | 2 +- test/Contribution.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/contracts/Contributor.sol b/contracts/Contributor.sol index 20f9b9c..a2255b4 100644 --- a/contracts/Contributor.sol +++ b/contracts/Contributor.sol @@ -99,7 +99,7 @@ contract Contributor is Initializable { function isCoreTeam(uint32 id) view public returns (bool) { // TODO: for simplicity we simply define the first contributors as core // later this needs to be changed to something more dynamic - return id > 0 && id < 6; + return id > 0 && id < 7; } function exists(uint32 id) view public returns (bool) { diff --git a/test/Contribution.js b/test/Contribution.js index 241caf8..ebcfe85 100644 --- a/test/Contribution.js +++ b/test/Contribution.js @@ -1,12 +1,12 @@ const { expect } = require("chai"); const { ethers, upgrades } = require("hardhat"); -let owner, addr1, addr2, addr3, addr4, addr5, addr6; +let owner, addr1, addr2, addr3, addr4, addr5, addr6, addr7; let Contribution, Contributor; describe("Contribution contract", async function () { before(async function () { - [owner, addr1, addr2, addr3, addr4, addr5, addr6] = await ethers.getSigners(); - let accounts = [owner, addr1, addr2, addr3, addr4, addr5, addr6]; + [owner, addr1, addr2, addr3, addr4, addr5, addr6, addr7] = await ethers.getSigners(); + let accounts = [owner, addr1, addr2, addr3, addr4, addr5, addr6, addr7]; const contributorFactory = await ethers.getContractFactory("Contributor"); Contributor = await upgrades.deployProxy(contributorFactory); for (const account of accounts) {