From 3d55f97c0aa3232624395d7b9398ff269425fa95 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Mon, 26 Jun 2017 19:36:51 -0700 Subject: Remove _getExchangeAddressAsync --- src/0x.ts | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/0x.ts') 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; - } } -- cgit v1.2.3