Hardhat #213

Merged
bumi merged 50 commits from hardhat into master 2022-07-14 13:31:49 +00:00
Showing only changes of commit 04fff0934d - Show all commits

View File

@ -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 > 1 && id < 7 || msg.sender == deployer;
return id > 0 && id < 7;
}
function exists(uint32 id) view public returns (bool) {
@ -107,6 +107,10 @@ contract Contributor is Initializable {
}
function addressIsCore(address account) view public returns (bool) {
// the deployer is always core
if(account == deployer) {
return true;
}
uint32 id = getContributorIdByAddress(account);
return isCoreTeam(id);
}