aboutsummaryrefslogtreecommitdiffstats
path: root/src
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
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')
-rw-r--r--src/0x.ts11
-rw-r--r--src/types.ts1
2 files changed, 1 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;
- }
}
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;