Copy docsite landing to readme (#2058)

* Copy docsite landing to readme

* Fix code sample

* Apply suggestions from code review

Co-Authored-By: Francisco Giordano <frangio.1@gmail.com>

* Update code sample

Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
This commit is contained in:
Nicolás Venturo
2020-01-23 13:36:21 -03:00
committed by GitHub
parent b1e811430a
commit d6698c3bfb
2 changed files with 43 additions and 28 deletions

View File

@ -28,10 +28,12 @@ Once installed, you can use the contracts in the library by importing them:
----
pragma solidity ^0.5.0;
import "@openzeppelin/contracts/ownership/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721Full.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721Mintable.sol";
contract MyContract is Ownable {
...
contract MyNFT is ERC721Full, ERC721Mintable {
constructor() ERC721Full("MyNFT", "MNFT") public {
}
}
----