Skip to content
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 Solidity Scripting Tutorial #1121

Merged

Conversation

frankmullenger
Copy link
Contributor

Updates Solidity Scripting Tutorial code example so that it complies with OpenZeppelin dependency.

The function signature of the OpenZeppelin Ownable class has changed in v5 from v4, the constructor now requires an "initialOwner" parameter, which has now been included and uses msg.sender as the argument. This change also sets a ref pointing to a release tag for the OpenZeppelin library in the forge install command so that it does not default to retrieving the master branch and won't pull in backwards incompatible changes in future.

Fixes #1119.

@Evalir Evalir merged commit 05d7c48 into foundry-rs:master Feb 16, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Solidity Scripting Tutorial code incompatible with v5 OpenZeppelin Ownable class
3 participants