diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-07-28 04:28:16 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-08-17 08:31:21 +0800 |
commit | 7a6e6473866dae794b9876f900e5d6f5efd15911 (patch) | |
tree | 477459ff528842b8c00d85d5698165481be8ed11 /packages | |
parent | f5459164d283c4b55a0514faf3213334c45fea50 (diff) | |
download | dexon-0x-contracts-7a6e6473866dae794b9876f900e5d6f5efd15911.tar.gz dexon-0x-contracts-7a6e6473866dae794b9876f900e5d6f5efd15911.tar.zst dexon-0x-contracts-7a6e6473866dae794b9876f900e5d6f5efd15911.zip |
Add constructor back to DummyERC721Token
Diffstat (limited to 'packages')
-rw-r--r-- | packages/contracts/src/2.0.0/test/DummyERC721Token/DummyERC721Token.sol | 12 | ||||
-rw-r--r-- | packages/contracts/test/utils/erc721_wrapper.ts | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/packages/contracts/src/2.0.0/test/DummyERC721Token/DummyERC721Token.sol b/packages/contracts/src/2.0.0/test/DummyERC721Token/DummyERC721Token.sol index 7c64005bd..e995cc967 100644 --- a/packages/contracts/src/2.0.0/test/DummyERC721Token/DummyERC721Token.sol +++ b/packages/contracts/src/2.0.0/test/DummyERC721Token/DummyERC721Token.sol @@ -27,6 +27,18 @@ contract DummyERC721Token is Ownable, MintableERC721Token { + string public name; + string public symbol; + + constructor ( + string _name, + string _symbol + ) + public + { + name = _name; + symbol = _symbol; + } /// @dev Function to mint a new token /// Reverts if the given token ID already exists diff --git a/packages/contracts/test/utils/erc721_wrapper.ts b/packages/contracts/test/utils/erc721_wrapper.ts index 0c12130a3..743d10706 100644 --- a/packages/contracts/test/utils/erc721_wrapper.ts +++ b/packages/contracts/test/utils/erc721_wrapper.ts @@ -35,6 +35,8 @@ export class ERC721Wrapper { artifacts.DummyERC721Token, this._provider, txDefaults, + constants.DUMMY_TOKEN_NAME, + constants.DUMMY_TOKEN_SYMBOL, ), ); } |