aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contract-wrappers/test
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-10-02 09:22:42 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-10-16 04:36:09 +0800
commit026ad1f9a10359723eed54f37c067ee2a61d8fcd (patch)
treec14d09b25ae07473e9d5b516b21331a8ad5c3621 /packages/contract-wrappers/test
parent81c48872415998e53ad653aabf183e18257ec327 (diff)
downloaddexon-sol-tools-026ad1f9a10359723eed54f37c067ee2a61d8fcd.tar
dexon-sol-tools-026ad1f9a10359723eed54f37c067ee2a61d8fcd.tar.gz
dexon-sol-tools-026ad1f9a10359723eed54f37c067ee2a61d8fcd.tar.bz2
dexon-sol-tools-026ad1f9a10359723eed54f37c067ee2a61d8fcd.tar.lz
dexon-sol-tools-026ad1f9a10359723eed54f37c067ee2a61d8fcd.tar.xz
dexon-sol-tools-026ad1f9a10359723eed54f37c067ee2a61d8fcd.tar.zst
dexon-sol-tools-026ad1f9a10359723eed54f37c067ee2a61d8fcd.zip
Update contract-wrappers package to use new contracts package for generated files
Diffstat (limited to 'packages/contract-wrappers/test')
-rw-r--r--packages/contract-wrappers/test/utils/token_utils.ts8
1 files changed, 3 insertions, 5 deletions
diff --git a/packages/contract-wrappers/test/utils/token_utils.ts b/packages/contract-wrappers/test/utils/token_utils.ts
index 06a82ff6e..0a35b4107 100644
--- a/packages/contract-wrappers/test/utils/token_utils.ts
+++ b/packages/contract-wrappers/test/utils/token_utils.ts
@@ -1,9 +1,7 @@
+import { artifacts, wrappers } from '@0xproject/contracts';
import { generatePseudoRandomSalt } from '@0xproject/order-utils';
import { BigNumber } from '@0xproject/utils';
-import { artifacts } from '../../src/artifacts';
-import { DummyERC721TokenContract } from '../../src/contract_wrappers/generated/dummy_erc721_token';
-
import { constants } from './constants';
import { provider, txDefaults, web3Wrapper } from './web3_wrapper';
@@ -24,7 +22,7 @@ export const tokenUtils = {
return artifacts.ZRXToken.networks[constants.TESTRPC_NETWORK_ID].address;
},
getWethTokenAddress(): string {
- return artifacts.EtherToken.networks[constants.TESTRPC_NETWORK_ID].address;
+ return artifacts.WETH9.networks[constants.TESTRPC_NETWORK_ID].address;
},
getDummyERC20TokenAddresses(): string[] {
return DUMMY_ERC_20_ADRESSES;
@@ -33,7 +31,7 @@ export const tokenUtils = {
return DUMMY_ERC_721_ADRESSES;
},
async mintDummyERC721Async(address: string, tokenOwner: string): Promise<BigNumber> {
- const erc721 = new DummyERC721TokenContract(
+ const erc721 = new wrappers.DummyERC721TokenContract(
artifacts.DummyERC721Token.compilerOutput.abi,
address,
provider,