diff options
author | Fabio Berger <me@fabioberger.com> | 2018-05-23 02:18:50 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-05-23 02:18:50 +0800 |
commit | a682b5d90e4c651e4e5d5d7c700237a9b6fe22bf (patch) | |
tree | 35690db865d8ed5ba859d9e0d9d1cd1050425c4f /packages/contracts/src/utils/erc721_wrapper.ts | |
parent | 4a0c8d72b05152ee2fd71245873d5a70f7281058 (diff) | |
download | dexon-0x-contracts-a682b5d90e4c651e4e5d5d7c700237a9b6fe22bf.tar.gz dexon-0x-contracts-a682b5d90e4c651e4e5d5d7c700237a9b6fe22bf.tar.zst dexon-0x-contracts-a682b5d90e4c651e4e5d5d7c700237a9b6fe22bf.zip |
Remove 0x.js dep from contracts
Diffstat (limited to 'packages/contracts/src/utils/erc721_wrapper.ts')
-rw-r--r-- | packages/contracts/src/utils/erc721_wrapper.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/contracts/src/utils/erc721_wrapper.ts b/packages/contracts/src/utils/erc721_wrapper.ts index 5b5de262f..bf8953a49 100644 --- a/packages/contracts/src/utils/erc721_wrapper.ts +++ b/packages/contracts/src/utils/erc721_wrapper.ts @@ -1,4 +1,4 @@ -import { ZeroEx } from '0x.js'; +import { generatePseudoRandomSalt } from '@0xproject/order-utils'; import { Provider } from '@0xproject/types'; import { BigNumber } from '@0xproject/utils'; import * as _ from 'lodash'; @@ -54,7 +54,7 @@ export class ERC721Wrapper { _.forEach(this._dummyTokenContracts, dummyTokenContract => { _.forEach(this._tokenOwnerAddresses, tokenOwnerAddress => { _.forEach(_.range(constants.NUM_ERC721_TOKENS_TO_MINT), () => { - const tokenId = ZeroEx.generatePseudoRandomSalt(); + const tokenId = generatePseudoRandomSalt(); setBalancePromises.push( dummyTokenContract.mint.sendTransactionAsync(tokenOwnerAddress, tokenId, { from: this._contractOwnerAddress, |