parent
885682b90e
commit
dc60e2212b
@ -1,14 +0,0 @@ |
||||
// SPDX-License-Identifier: GPL-3.0 |
||||
|
||||
pragma solidity >=0.7.0 <0.9.0; |
||||
|
||||
import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; |
||||
|
||||
/** |
||||
* @title SampleERC721 |
||||
* @dev Create a sample ERC721 standard token |
||||
*/ |
||||
contract SampleERC721 is ERC721 { |
||||
|
||||
constructor(string memory tokenName, string memory tokenSymbol) ERC721(tokenName, tokenSymbol) {} |
||||
} |
@ -0,0 +1,18 @@ |
||||
// SPDX-License-Identifier: GPL-3.0 |
||||
|
||||
pragma solidity >=0.7.0 <0.9.0; |
||||
import "remix_tests.sol"; |
||||
import "../contracts/MyToken.sol"; |
||||
|
||||
contract MyTokenTest { |
||||
|
||||
MyToken s; |
||||
function beforeAll () public { |
||||
s = new MyToken(); |
||||
} |
||||
|
||||
function testTokenNameAndSymbol () public { |
||||
Assert.equal(s.name(), "MyToken", "token name did not match"); |
||||
Assert.equal(s.symbol(), "MTK", "token symbol did not match"); |
||||
} |
||||
} |
@ -1,18 +0,0 @@ |
||||
// SPDX-License-Identifier: GPL-3.0 |
||||
|
||||
pragma solidity >=0.7.0 <0.9.0; |
||||
import "remix_tests.sol"; |
||||
import "../contracts/SampleERC721.sol"; |
||||
|
||||
contract SampleERC721Test { |
||||
|
||||
SampleERC721 s; |
||||
function beforeAll () public { |
||||
s = new SampleERC721("TestNFT", "TNFT"); |
||||
} |
||||
|
||||
function testTokenNameAndSymbol () public { |
||||
Assert.equal(s.name(), "TestNFT", "token name did not match"); |
||||
Assert.equal(s.symbol(), "TNFT", "token symbol did not match"); |
||||
} |
||||
} |
Loading…
Reference in new issue