aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src/contract_wrappers
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-01-24 22:17:56 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-01-24 22:17:56 +0800
commit36bfe62a8f7badd8a27c650e1d42ba3d258bf871 (patch)
treeb8456f39f660377a12ec9db5dfa1960b0710859f /packages/0x.js/src/contract_wrappers
parent8a858501f2b633f47cec9576b25e6f99911bbc09 (diff)
downloaddexon-0x-contracts-36bfe62a8f7badd8a27c650e1d42ba3d258bf871.tar.gz
dexon-0x-contracts-36bfe62a8f7badd8a27c650e1d42ba3d258bf871.tar.zst
dexon-0x-contracts-36bfe62a8f7badd8a27c650e1d42ba3d258bf871.zip
Fix the bug making it impossible to specify the custom ZRX address
Diffstat (limited to 'packages/0x.js/src/contract_wrappers')
-rw-r--r--packages/0x.js/src/contract_wrappers/exchange_wrapper.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/0x.js/src/contract_wrappers/exchange_wrapper.ts b/packages/0x.js/src/contract_wrappers/exchange_wrapper.ts
index be88cdb20..2b6117729 100644
--- a/packages/0x.js/src/contract_wrappers/exchange_wrapper.ts
+++ b/packages/0x.js/src/contract_wrappers/exchange_wrapper.ts
@@ -87,11 +87,13 @@ export class ExchangeWrapper extends ContractWrapper {
abiDecoder: AbiDecoder,
tokenWrapper: TokenWrapper,
contractAddressIfExists?: string,
+ zrxContractAddressIfExists?: string,
) {
super(web3Wrapper, networkId, abiDecoder);
this._tokenWrapper = tokenWrapper;
this._orderValidationUtils = new OrderValidationUtils(this);
this._contractAddressIfExists = contractAddressIfExists;
+ this._zrxContractAddressIfExists = zrxContractAddressIfExists;
}
/**
* Returns the unavailable takerAmount of an order. Unavailable amount is defined as the total