aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-05-30 18:52:28 +0800
committerFabio Berger <me@fabioberger.com>2017-05-30 18:52:28 +0800
commit007c57ec4049ce4c929cbf97ca000a375570aeb4 (patch)
treebe849039722dfbbd05d766803b03956e7dc864ed
parent6aded80b2f1fd630323cdc97a4d66f1e82ce1632 (diff)
downloaddexon-sol-tools-007c57ec4049ce4c929cbf97ca000a375570aeb4.tar
dexon-sol-tools-007c57ec4049ce4c929cbf97ca000a375570aeb4.tar.gz
dexon-sol-tools-007c57ec4049ce4c929cbf97ca000a375570aeb4.tar.bz2
dexon-sol-tools-007c57ec4049ce4c929cbf97ca000a375570aeb4.tar.lz
dexon-sol-tools-007c57ec4049ce4c929cbf97ca000a375570aeb4.tar.xz
dexon-sol-tools-007c57ec4049ce4c929cbf97ca000a375570aeb4.tar.zst
dexon-sol-tools-007c57ec4049ce4c929cbf97ca000a375570aeb4.zip
Also instantiate tokenRegistry contract instance
-rw-r--r--test/0x.js_test.ts3
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