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 constructor syntax for solidity 0.4.23 in numerous contracts #921
Conversation
β¦o eliminate compiler warnings
I'm curious why tests are failing and wonder if this is an issue with Ganache.
|
@pemulis The tests are failing because the The new I would recommend as part of the PR also update the tests dependecies which should fix this. |
Thanks @naveensrinivasan! I'll take care of that. |
It looks like the solidity-coverage docs: https://github.com/sc-forks/solidity-coverage |
We'll want to update the entire OZ project to .22 about a month after it's been released (to allow it to be "in the wild" for a bit). are there any other changes we want to make in a "update to 0.4.22" pr, beyond |
This also updates solc in tests to recognize the new constructor syntax for solidity ^0.4.22.
Looks like the tests are all working now, so the constructor() update is good to go when you want to update the OZ project in a couple of weeks. |
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.
Thanks a lot for updating this.
All the tests are passing, so +1 from me.
@shrugs do you think it's necessary to update to 0.4.22 before moving to 0.4.23?
Also, why don't we have a explicit devDependency on solc?
@shrugs 0.4.22 adds error reason strings for |
@ElOpio We don't because solc comes with Truffle. |
@pemulis Let's upgrade all of the contracts to shows the following contracts are still on older versions:
I also confirmed at all of the |
@shrugs done! |
π Description
This eliminates a lot of compiler warnings.
npm run lint:all:fix
).(edit: the linter error is resolved!)
The linter throws an error (below) on all of the changed contracts at the constructor line, but I think the linter is wrong, not the constructor.
error Syntax error: unexpected token (
Closes #932