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

Importing OpenZeppelin Contracts from GitHub should specify a release tag #2

Open
abcoathup opened this issue Aug 24, 2019 · 0 comments · May be fixed by #3
Open

Importing OpenZeppelin Contracts from GitHub should specify a release tag #2

abcoathup opened this issue Aug 24, 2019 · 0 comments · May be fixed by #3

Comments

@abcoathup
Copy link

abcoathup commented Aug 24, 2019

You should only use code published in an official release of OpenZeppelin Contracts, the latest release is 2.3. When importing via GitHub on Remix you can specify the release tag, (otherwise you will get the latest code in the master branch).

The imports using version 2.3.0 of OpenZeppelin Contracts would be:

import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.3.0/contracts/token/ERC721/ERC721Full.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.3.0/contracts/math/SafeMath.sol";

Raised as an issue on StackOverflow:
https://stackoverflow.com/questions/57540884/warning-regarding-extcodehash-in-remix-for-openzeppelin-contracts/57551294#57551294

Disclosure: I am the Community Manager at OpenZeppelin

@abcoathup abcoathup linked a pull request Aug 24, 2019 that will close this issue
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 a pull request may close this issue.

1 participant