Revert core flag change
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Râu Cao 2022-08-23 13:14:19 +01:00
parent 90172071fa
commit cd07313679
Signed by: raucao
GPG Key ID: 15E65F399D084BA9
2 changed files with 4 additions and 4 deletions

View File

@ -99,7 +99,7 @@ contract Contributor is Initializable {
function isCoreTeam(uint32 id) view public returns (bool) { function isCoreTeam(uint32 id) view public returns (bool) {
// TODO: for simplicity we simply define the first contributors as core // TODO: for simplicity we simply define the first contributors as core
// later this needs to be changed to something more dynamic // 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) { function exists(uint32 id) view public returns (bool) {

View File

@ -1,12 +1,12 @@
const { expect } = require("chai"); const { expect } = require("chai");
const { ethers, upgrades } = require("hardhat"); 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; let Contribution, Contributor;
describe("Contribution contract", async function () { describe("Contribution contract", async function () {
before(async function () { before(async function () {
[owner, addr1, addr2, addr3, addr4, addr5, addr6] = await ethers.getSigners(); [owner, addr1, addr2, addr3, addr4, addr5, addr6, addr7] = await ethers.getSigners();
let accounts = [owner, addr1, addr2, addr3, addr4, addr5, addr6]; let accounts = [owner, addr1, addr2, addr3, addr4, addr5, addr6, addr7];
const contributorFactory = await ethers.getContractFactory("Contributor"); const contributorFactory = await ethers.getContractFactory("Contributor");
Contributor = await upgrades.deployProxy(contributorFactory); Contributor = await upgrades.deployProxy(contributorFactory);
for (const account of accounts) { for (const account of accounts) {