aboutsummaryrefslogtreecommitdiffstats
path: root/src/0x.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-27 10:36:51 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-27 10:44:21 +0800
commit3d55f97c0aa3232624395d7b9398ff269425fa95 (patch)
tree3da70aafad301eb7fae50ea46a2e338c252f2abf /src/0x.ts
parentde0e436aad5d6b1c8a9425f075dbc3074b2fe31f (diff)
downloaddexon-sol-tools-3d55f97c0aa3232624395d7b9398ff269425fa95.tar
dexon-sol-tools-3d55f97c0aa3232624395d7b9398ff269425fa95.tar.gz
dexon-sol-tools-3d55f97c0aa3232624395d7b9398ff269425fa95.tar.bz2
dexon-sol-tools-3d55f97c0aa3232624395d7b9398ff269425fa95.tar.lz
dexon-sol-tools-3d55f97c0aa3232624395d7b9398ff269425fa95.tar.xz
dexon-sol-tools-3d55f97c0aa3232624395d7b9398ff269425fa95.tar.zst
dexon-sol-tools-3d55f97c0aa3232624395d7b9398ff269425fa95.zip
Remove _getExchangeAddressAsync
Diffstat (limited to 'src/0x.ts')
-rw-r--r--src/0x.ts11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/0x.ts b/src/0x.ts
index 472a55102..fbfea8145 100644
--- a/src/0x.ts
+++ b/src/0x.ts
@@ -241,15 +241,4 @@ export class ZeroEx {
}
return ecSignature;
}
- private async _getExchangeAddressAsync() {
- const networkIdIfExists = await this._web3Wrapper.getNetworkIdIfExistsAsync();
- const exchangeNetworkConfigsIfExists = _.isUndefined(networkIdIfExists) ?
- undefined :
- (ExchangeArtifacts as any).networks[networkIdIfExists];
- if (_.isUndefined(exchangeNetworkConfigsIfExists)) {
- throw new Error(ZeroExError.CONTRACT_NOT_DEPLOYED_ON_NETWORK);
- }
- const exchangeAddress = exchangeNetworkConfigsIfExists.address;
- return exchangeAddress;
- }
}