aboutsummaryrefslogtreecommitdiffstats
path: root/src/0x.js.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-05-30 18:43:50 +0800
committerFabio Berger <me@fabioberger.com>2017-05-30 18:43:50 +0800
commita3ce892f85e7a8c1bb0e707f1e64f204a2ce29c6 (patch)
tree27bb9cbc2678b5342ce5064c4b57a70ebfbf2043 /src/0x.js.ts
parentcb31b21d28c20a0153199e9388202301e1385bfe (diff)
downloaddexon-sol-tools-a3ce892f85e7a8c1bb0e707f1e64f204a2ce29c6.tar
dexon-sol-tools-a3ce892f85e7a8c1bb0e707f1e64f204a2ce29c6.tar.gz
dexon-sol-tools-a3ce892f85e7a8c1bb0e707f1e64f204a2ce29c6.tar.bz2
dexon-sol-tools-a3ce892f85e7a8c1bb0e707f1e64f204a2ce29c6.tar.lz
dexon-sol-tools-a3ce892f85e7a8c1bb0e707f1e64f204a2ce29c6.tar.xz
dexon-sol-tools-a3ce892f85e7a8c1bb0e707f1e64f204a2ce29c6.tar.zst
dexon-sol-tools-a3ce892f85e7a8c1bb0e707f1e64f204a2ce29c6.zip
Make tokenRegistry contract instantiation lazy and clear it on provider update
Diffstat (limited to 'src/0x.js.ts')
-rw-r--r--src/0x.js.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/0x.js.ts b/src/0x.js.ts
index 506ac4187..c621a15b6 100644
--- a/src/0x.js.ts
+++ b/src/0x.js.ts
@@ -143,6 +143,7 @@ export class ZeroEx {
public setProvider(provider: Web3.Provider) {
this.web3Wrapper.setProvider(provider);
this.exchange.invalidateContractInstance();
+ this.tokenRegistry.invalidateContractInstance();
}
/**
* Signs an orderHash and returns it's elliptic curve signature