-
Notifications
You must be signed in to change notification settings - Fork 11.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove admin functionality from RBAC.sol #836
remove admin functionality from RBAC.sol #836
Conversation
479c7ff
to
c2f2099
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR includes an entirely new package-lock.json by mistake I think. π
test/Bounty.test.js
Outdated
@@ -26,7 +26,7 @@ contract('Bounty', function (accounts) { | |||
let bounty = await SecureTargetBounty.new(); | |||
sendReward(owner, bounty.address, reward); | |||
|
|||
assert.equal(reward, web3.eth.getBalance(bounty.address).toNumber()); | |||
assert.equal(reward, await web3.eth.getBalance(bounty.address).toNumber()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think toNumber
returns a promise, so the await
isn't necessary.
Additionally, we shouldn't be converting to Number. See #204. The Crowdsale
tests do the correct thing:
@@ -99,16 +99,16 @@ contract('SampleCrowdsale', function ([owner, wallet, investor]) { | |||
}); | |||
|
|||
it('should allow refunds if the goal is not reached', async function () { | |||
const balanceBeforeInvestment = web3.eth.getBalance(investor); | |||
// const balanceBeforeInvestment = web3.eth.getBalance(investor); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should these commented out lines be part of the PR?
thanks for the second pair of eyes!! the commented out functions are a very odd bug on my side; the last transaction in SampleCrowdsale.test.js is complaining about the wrong number of solidity function arguments, but it's a 0-argument function. The travis tests seem to pass just fine. I've reverted all of those changes and force-pushed this branch |
7983b1c
to
485034a
Compare
485034a
to
997a004
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
β¦penZeppelin#836) - splits the admin part of RBAC.sol into RBACWithAdmin.sol
Fixes #802
π Description
separates the rbac admin functionality into a second contract. this is a breaking change.
npm run lint:all:fix
).