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:
@ -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 {
|
||||
}
|
||||
}
|
||||
----
|
||||
|
||||
|
||||
Reference in New Issue
Block a user