diff options
author | Fabio Berger <me@fabioberger.com> | 2017-05-30 20:23:44 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-05-30 20:23:44 +0800 |
commit | ad14c307cec8e0e7621b47e9e1ecb2652985190f (patch) | |
tree | 4800127dea7cd267ab57622d875fa92a49f1a98e /test | |
parent | 8561258ded12bc7d284933e61f6d052941258f40 (diff) | |
download | dexon-sol-tools-ad14c307cec8e0e7621b47e9e1ecb2652985190f.tar dexon-sol-tools-ad14c307cec8e0e7621b47e9e1ecb2652985190f.tar.gz dexon-sol-tools-ad14c307cec8e0e7621b47e9e1ecb2652985190f.tar.bz2 dexon-sol-tools-ad14c307cec8e0e7621b47e9e1ecb2652985190f.tar.lz dexon-sol-tools-ad14c307cec8e0e7621b47e9e1ecb2652985190f.tar.xz dexon-sol-tools-ad14c307cec8e0e7621b47e9e1ecb2652985190f.tar.zst dexon-sol-tools-ad14c307cec8e0e7621b47e9e1ecb2652985190f.zip |
Refactor exchangeWrapper and tokenRegistryWrapper to use contract getter that instantiates contract instance if not already instantiated
Diffstat (limited to 'test')
-rw-r--r-- | test/0x.js_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/0x.js_test.ts b/test/0x.js_test.ts index 0c2afe879..b404b27ba 100644 --- a/test/0x.js_test.ts +++ b/test/0x.js_test.ts @@ -18,8 +18,8 @@ describe('ZeroEx library', () => { const web3 = web3Factory.create(); const zeroEx = new ZeroEx(web3); // Instantiate the contract instances with the current provider - await (zeroEx.exchange as any).instantiateExchangeContractIfDoesntExistAsync(); - await (zeroEx.tokenRegistry as any).instantiateTokenRegistryContractIfDoesntExistAsync(); + await (zeroEx.exchange as any).getExchangeContractAsync(); + await (zeroEx.tokenRegistry as any).getTokenRegistryContractAsync(); expect((zeroEx.exchange as any).exchangeContractIfExists).to.not.be.an('undefined'); expect((zeroEx.tokenRegistry as any).tokenRegistryContractIfExists).to.not.be.an('undefined'); |