diff options
author | Fabio Berger <me@fabioberger.com> | 2017-05-30 18:52:28 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-05-30 18:52:28 +0800 |
commit | 007c57ec4049ce4c929cbf97ca000a375570aeb4 (patch) | |
tree | be849039722dfbbd05d766803b03956e7dc864ed /test | |
parent | 6aded80b2f1fd630323cdc97a4d66f1e82ce1632 (diff) | |
download | dexon-0x-contracts-007c57ec4049ce4c929cbf97ca000a375570aeb4.tar.gz dexon-0x-contracts-007c57ec4049ce4c929cbf97ca000a375570aeb4.tar.zst dexon-0x-contracts-007c57ec4049ce4c929cbf97ca000a375570aeb4.zip |
Also instantiate tokenRegistry contract instance
Diffstat (limited to 'test')
-rw-r--r-- | test/0x.js_test.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/0x.js_test.ts b/test/0x.js_test.ts index 496b2780a..21e4b5a3b 100644 --- a/test/0x.js_test.ts +++ b/test/0x.js_test.ts @@ -17,8 +17,9 @@ describe('ZeroEx library', () => { it('overrides the provider in the nested web3 instance and invalidates contractInstances', async () => { const web3 = web3Factory.create(); const zeroEx = new ZeroEx(web3); - // Instantiate the exchangeContract instance with the current provider + // Instantiate the contract instances with the current provider await (zeroEx.exchange as any).instantiateExchangeContractIfDoesntExistAsync(); + await (zeroEx.tokenRegistry as any).instantiateTokenRegistryContractIfDoesntExistAsync(); const newProvider = web3Factory.getRpcProvider(); // Add property to newProvider so that we can differentiate it from old provider |