-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Update Truffle and Solium #1105
Update Truffle and Solium #1105
Conversation
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.
Great work, thanks @vittominacori! I left some nitpicking comments, will see if I can figure out the linebreak thing.
contracts/access/Whitelist.sol
Outdated
@@ -52,8 +52,8 @@ contract Whitelist is Ownable, RBAC { | |||
* false if all addresses were already in the whitelist | |||
*/ | |||
function addAddressesToWhitelist(address[] _operators) | |||
onlyOwner | |||
public | |||
public |
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.
isn't there an indentation missing here? @ElOpio you experimented a bit with Solium, any ideas on why it didn't catch this?
@@ -45,7 +45,7 @@ contract('HasNoEther', function (accounts) { | |||
const ownerFinalBalance = await ethGetBalance(accounts[0]); | |||
const finalBalance = await ethGetBalance(hasNoEther.address); | |||
assert.equal(finalBalance, 0); | |||
assert.isAbove(ownerFinalBalance, ownerStartBalance); | |||
assert.isTrue(ownerFinalBalance.greaterThan(ownerStartBalance)); |
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.
There is a separate issue (#1091) for this, try to only commit relevant changes :)
uint256, | ||
bytes) | ||
public | ||
returns(bytes4) |
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.
Missing indentation?
Turns out that file had Windows-style line endings, which Solium caught. I changed them to Unix-style (same as the rest of the project). |
…idity into feature/update-truffle-and-solium # Conflicts: # contracts/access/rbac/Roles.sol # contracts/examples/RBACWithAdmin.sol # contracts/lifecycle/TokenDestructible.sol # contracts/ownership/Contactable.sol # contracts/token/ERC20/RBACMintableToken.sol # contracts/token/ERC721/ERC721Holder.sol # contracts/token/ERC721/ERC721Token.sol # package-lock.json
@nventuro I merged again from master. |
Agreed, these big PRs are better not left open for too long. Thanks once again @vittominacori! |
🚀 Description
This PR is to force update to Truffle 4.1.13 and Solium 1.1.8.
I solved all warnings regarding
visibility-first
andmax-len
.There are many warnings regarding missing require message (
error-reason
) that everyone should address.I'm having a
linebreak-style
issue with RBACCappedTokenMock.But I think it is a solium issue so I can't resolve it. Travis test.
npm run lint:all:fix
).