Update import.md GitHub import

Update GitHub import instructions to use a release tag where available and change the example of importing from OpenZeppelin Contracts to use an official release rather than the master branch.
pull/1/head
Andrew B Coathup 5 years ago committed by GitHub
parent 6713f69160
commit 1d7b95f0ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      docs/import.md

@ -30,12 +30,12 @@ This method uses **remixd** - the remix daemon. Please go to the [remixd tutori
Importing from GitHub
---------------------
It is possible to import files directly from GitHub.
It is possible to import files directly from GitHub. You should specify the release tag (where available), otherwise you will get the latest code in the master branch. For OpenZeppelin Contracts you should only use code published in an official release, the example below imports from OpenZeppelin Contracts v2.5.0.
```
pragma solidity >=0.4.22 <0.6.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/SafeMath.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.5.0/contracts/math/SafeMath.sol";
```

Loading…
Cancel
Save