-
Notifications
You must be signed in to change notification settings - Fork 12.3k
Added explicit data locations for function parameters to comply with Solidity v050 changes. #1068
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
Added explicit data locations for function parameters to comply with Solidity v050 changes. #1068
Conversation
cfaef6b to
c4a473e
Compare
|
Awesome, thanks @chase1745! I want to leave this one open until argotorg/solidity#4014 is merged, so that we can test against the solidity nightly build. |
|
argotorg/solidity#4518 is now the PR that contains the breaking changes, just for reference. |
|
Now tracking argotorg/solidity#4738. |
|
Woot @chase1745 looks like argotorg/solidity#4738 was finally merged! We should be able to test against nightly builds now - could you fix the merge conflicts so that we can move along with this once the build passes? Thanks! |
c4a473e to
ea8ce5f
Compare
|
@nventuro Should be good to go👍 |
|
It's failing the CI build because |
|
That's inconvenient - it doesn't exist in previous versions and is now required? Given that, is there a way we can have OZ compile in both 0.4.24 and 0.5.0 (without having to use the experimental pragma)? |
|
@nventuro @chase1745 |
|
I feared this may be the case. I don't want to drop our testing using the nightly build though - I'll try to come up with a way to handle this (e.g. a script that patches our source code) during the next couple days. Until then, this should be on hold, so we can keep things tidy and on the same PR. |
|
I've updated the PR to target the |
|
Most of this should be backwards compatible and could be merged on |
|
Fixed via e5b94c1 |
🚀 Description
Solidity v050 will no longer allow default data locations for function parameters (and return parameters) (argotorg/solidity#4014), so all such instances have been made explicit
memorylocations.npm run lint:all:fix).