aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contract-wrappers/test
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-10-05 05:40:58 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-10-16 04:36:59 +0800
commit2bd7b0f66bd28792281ba025cf005c666e7f767e (patch)
tree228f2797a772a4ba828d6b71e5c85c78a708ed21 /packages/contract-wrappers/test
parent8f0ceaf1d8261e9779213276372f4690cdf3426c (diff)
downloaddexon-sol-tools-2bd7b0f66bd28792281ba025cf005c666e7f767e.tar
dexon-sol-tools-2bd7b0f66bd28792281ba025cf005c666e7f767e.tar.gz
dexon-sol-tools-2bd7b0f66bd28792281ba025cf005c666e7f767e.tar.bz2
dexon-sol-tools-2bd7b0f66bd28792281ba025cf005c666e7f767e.tar.lz
dexon-sol-tools-2bd7b0f66bd28792281ba025cf005c666e7f767e.tar.xz
dexon-sol-tools-2bd7b0f66bd28792281ba025cf005c666e7f767e.tar.zst
dexon-sol-tools-2bd7b0f66bd28792281ba025cf005c666e7f767e.zip
update contract_wrappers to use new artifacts and abi-gen wrappers packages
Diffstat (limited to 'packages/contract-wrappers/test')
-rw-r--r--packages/contract-wrappers/test/utils/token_utils.ts10
1 files changed, 3 insertions, 7 deletions
diff --git a/packages/contract-wrappers/test/utils/token_utils.ts b/packages/contract-wrappers/test/utils/token_utils.ts
index e9ca9533f..c9e1e7434 100644
--- a/packages/contract-wrappers/test/utils/token_utils.ts
+++ b/packages/contract-wrappers/test/utils/token_utils.ts
@@ -1,4 +1,5 @@
-import { artifacts, wrappers } from '@0xproject/contracts';
+import { DummyERC721TokenContract } from '@0xproject/abi-gen-wrappers';
+import { DummyERC721Token } from '@0xproject/contract-artifacts';
import { generatePseudoRandomSalt } from '@0xproject/order-utils';
import { BigNumber } from '@0xproject/utils';
@@ -25,12 +26,7 @@ export const tokenUtils = {
return DUMMY_ERC_721_ADRESSES;
},
async mintDummyERC721Async(address: string, tokenOwner: string): Promise<BigNumber> {
- const erc721 = new wrappers.DummyERC721TokenContract(
- artifacts.DummyERC721Token.compilerOutput.abi,
- address,
- provider,
- txDefaults,
- );
+ const erc721 = new DummyERC721TokenContract(DummyERC721Token.compilerOutput.abi, address, provider, txDefaults);
const tokenId = generatePseudoRandomSalt();
const txHash = await erc721.mint.sendTransactionAsync(tokenOwner, tokenId);
web3Wrapper.awaitTransactionSuccessAsync(txHash);