Skip to content

Commit

Permalink
Fixes as per review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
robsecord committed Jun 19, 2020
1 parent b9e0e6e commit ca01771
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 0 additions & 4 deletions contracts/token/ControlledToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ contract ControlledToken is ERC777UpgradeSafe, BaseRelayRecipient {
_burn(_user, _amount, data, operatorData);
}

// function burn(uint256 amount, bytes memory data) public override {
// revert();
// }

modifier onlyController {
require(_msgSender() == address(controller), "only controller");
_;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test": "buidler test",
"compile": "buidler --show-stack-traces --max-memory 8192 compile",
"start": "buidler node --port $LOCAL_BUIDLEREVM_PORT",
"coverage": "rm -rf build cache test-results.xml && buidler compile && buidler coverage --network coverage --temp build",
"coverage": "rm -rf build cache test-results.xml && buidler compile && buidler coverage --network coverage --temp build; rm -rf cache",
"gas": "REPORT_GAS=true buidler test --network local",
"migrate": "./scripts/cli.js",
"migrate-local": "oz compile; ./scripts/cli.js migrate -n local -a $LOCAL_ADMIN_ADDRESS",
Expand Down
5 changes: 5 additions & 0 deletions test/PeriodicPrizePool.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ describe.only('PeriodicPrizePool contract', function() {
expect(await prizePool.ticketCredit()).to.equal(ticketCredit.address)
expect(await prizePool.sponsorshipCredit()).to.equal(sponsorshipCredit.address)
})

it('should not allow setting the token addresses twice', async () => {
await expect(prizePool.setTokens(ticket.address, sponsorship.address, ticketCredit.address, sponsorshipCredit.address))
.to.be.revertedWith('already initialized')
})
})

describe('supplySponsorship()', () => {
Expand Down

0 comments on commit ca01771

Please sign in to comment.