From 7a6e6473866dae794b9876f900e5d6f5efd15911 Mon Sep 17 00:00:00 2001 From: Amir Bandeali Date: Fri, 27 Jul 2018 13:28:16 -0700 Subject: Add constructor back to DummyERC721Token --- .../src/2.0.0/test/DummyERC721Token/DummyERC721Token.sol | 12 ++++++++++++ packages/contracts/test/utils/erc721_wrapper.ts | 2 ++ 2 files changed, 14 insertions(+) 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, ), ); } -- cgit