diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-27 10:36:51 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-27 10:44:21 +0800 |
commit | 3d55f97c0aa3232624395d7b9398ff269425fa95 (patch) | |
tree | 3da70aafad301eb7fae50ea46a2e338c252f2abf /src | |
parent | de0e436aad5d6b1c8a9425f075dbc3074b2fe31f (diff) | |
download | dexon-0x-contracts-3d55f97c0aa3232624395d7b9398ff269425fa95.tar.gz dexon-0x-contracts-3d55f97c0aa3232624395d7b9398ff269425fa95.tar.zst dexon-0x-contracts-3d55f97c0aa3232624395d7b9398ff269425fa95.zip |
Remove _getExchangeAddressAsync
Diffstat (limited to 'src')
-rw-r--r-- | src/0x.ts | 11 | ||||
-rw-r--r-- | src/types.ts | 1 |
2 files changed, 1 insertions, 11 deletions
@@ -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; - } } diff --git a/src/types.ts b/src/types.ts index f12d6f6c6..41ff30193 100644 --- a/src/types.ts +++ b/src/types.ts @@ -182,6 +182,7 @@ export const ExchangeContractErrs = strEnum([ 'MULTIPLE_MAKERS_IN_SINGLE_CANCEL_BATCH_DISALLOWED', 'INSUFFICIENT_REMAINING_FILL_AMOUNT', 'MULTIPLE_TAKER_TOKENS_IN_FILL_UP_TO_DISALLOWED', + 'BATCH_ORDERS_MUST_HAVE_SAME_EXCHANGE_ADDRESS', ]); export type ExchangeContractErrs = keyof typeof ExchangeContractErrs; |