diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-10-10 04:52:40 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-10-16 04:37:57 +0800 |
commit | a48e0a08bf4ea8a8fb0f08cfe5187a6291378afb (patch) | |
tree | 10509a92be382c26b0c8dc4891835857c9fbc21b /packages/contract-wrappers/test/erc721_proxy_wrapper_test.ts | |
parent | ecdd6e3303e90cffbc5b63e96cf0ca87c1c83f2b (diff) | |
download | dexon-sol-tools-a48e0a08bf4ea8a8fb0f08cfe5187a6291378afb.tar dexon-sol-tools-a48e0a08bf4ea8a8fb0f08cfe5187a6291378afb.tar.gz dexon-sol-tools-a48e0a08bf4ea8a8fb0f08cfe5187a6291378afb.tar.bz2 dexon-sol-tools-a48e0a08bf4ea8a8fb0f08cfe5187a6291378afb.tar.lz dexon-sol-tools-a48e0a08bf4ea8a8fb0f08cfe5187a6291378afb.tar.xz dexon-sol-tools-a48e0a08bf4ea8a8fb0f08cfe5187a6291378afb.tar.zst dexon-sol-tools-a48e0a08bf4ea8a8fb0f08cfe5187a6291378afb.zip |
Add new runMigrationsOnce method to migrations. Update contract-wrappers to use it.
Diffstat (limited to 'packages/contract-wrappers/test/erc721_proxy_wrapper_test.ts')
-rw-r--r-- | packages/contract-wrappers/test/erc721_proxy_wrapper_test.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/contract-wrappers/test/erc721_proxy_wrapper_test.ts b/packages/contract-wrappers/test/erc721_proxy_wrapper_test.ts index 145bad84b..9b0fe8817 100644 --- a/packages/contract-wrappers/test/erc721_proxy_wrapper_test.ts +++ b/packages/contract-wrappers/test/erc721_proxy_wrapper_test.ts @@ -1,10 +1,10 @@ -import { getContractAddresses } from '@0xproject/migrations'; import * as chai from 'chai'; import { ContractWrappers } from '../src'; import { chaiSetup } from './utils/chai_setup'; import { constants } from './utils/constants'; +import { migrateOnceAsync } from './utils/migrate'; import { provider } from './utils/web3_wrapper'; chaiSetup.configure(); @@ -13,9 +13,10 @@ const expect = chai.expect; describe('ERC721ProxyWrapper', () => { let contractWrappers: ContractWrappers; before(async () => { + const contractAddresses = await migrateOnceAsync(); const config = { networkId: constants.TESTRPC_NETWORK_ID, - contractAddresses: getContractAddresses(), + contractAddresses, blockPollingIntervalMs: 10, }; contractWrappers = new ContractWrappers(provider, config); |