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) {