Skip to content
This repository has been archived by the owner on Aug 6, 2021. It is now read-only.

Commit

Permalink
Fix SimpleRestrictedRuleEngine and add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-es committed Oct 8, 2020
1 parent 810f1ae commit f70f54c
Show file tree
Hide file tree
Showing 5 changed files with 875 additions and 4 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,11 @@ contract SimpleRestrictedRuleEngine is IRuleEngine, Whitelistable, Restrictable
string public constant UNKNOWN_ERROR = "Unknown Error Code";


constructor(address owner) public {
super.__Ownable_init();
transferOwnership(owner);
}

function setRules(IRule[] calldata rules) external override onlyOwner {
revert("Can not set any additional rules");
}
Expand Down
4 changes: 3 additions & 1 deletion packages/ap-contracts/test/FDT/TestCMTA20FDT.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ const buidlerRuntime = require('@nomiclabs/buidler');
const { BN, ether, shouldFail } = require('openzeppelin-test-helpers');

const { expectEvent, ZERO_ADDRESS } = require('../helper/utils');
const { getSnapshotTaker, deployPaymentToken, deployCMTA20FDT, deployRuleEngineMock } = require('../helper/setupTestEnvironment');
const {
getSnapshotTaker, deployPaymentToken, deployCMTA20FDT, deployRuleEngineMock
} = require('../helper/setupTestEnvironment');


describe('CMTA20', () => {
Expand Down
Loading

0 comments on commit f70f54c

Please sign in to comment.