Account rules contract seeds with the contract creators address (#83)

pull/84/head
Chris Mckay 5 years ago committed by GitHub
parent afe5dbfd2a
commit e3f829a9b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      contracts/AccountRules.sol
  2. 5
      test/test-account-rules-permissioning.js

@ -31,6 +31,7 @@ contract AccountRules is AccountRulesProxy, AccountRulesList {
constructor (address ingressAddress) public {
ingressContractAddress = ingressAddress;
add(msg.sender);
}
// VERSION

@ -30,6 +30,11 @@ contract("Account Rules (Permissioning)", (accounts) => {
rulesContract = await RulesContract.new(ingressContract.address);
await ingressContract.setContractAddress(RULES_NAME, rulesContract.address);
let size = await rulesContract.getSize();
assert.equal(size, 1, "Whitelist initialises with 1 account");
let initialAccount = await rulesContract.getByIndex(0);
assert.equal(initialAccount, accounts[0], "Whitelist initialises allowing deploying account");
await rulesContract.removeAccount(initialAccount);
});
it('should NOT permit account when whitelist is empty', async () => {

Loading…
Cancel
Save