diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-09-19 20:53:12 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-09-19 20:53:12 +0800 |
commit | 66db021900cf4ac824635512052afb2bddb0299c (patch) | |
tree | 167fec652823cdefa9c08eab01327a6f2c167e59 /src/contract_wrappers/exchange_wrapper.ts | |
parent | e7af0eb20c108eae1c0e753d1079c2db3c13a583 (diff) | |
download | dexon-0x-contracts-66db021900cf4ac824635512052afb2bddb0299c.tar dexon-0x-contracts-66db021900cf4ac824635512052afb2bddb0299c.tar.gz dexon-0x-contracts-66db021900cf4ac824635512052afb2bddb0299c.tar.bz2 dexon-0x-contracts-66db021900cf4ac824635512052afb2bddb0299c.tar.lz dexon-0x-contracts-66db021900cf4ac824635512052afb2bddb0299c.tar.xz dexon-0x-contracts-66db021900cf4ac824635512052afb2bddb0299c.tar.zst dexon-0x-contracts-66db021900cf4ac824635512052afb2bddb0299c.zip |
Postfix variable names with 'ifExists'
Diffstat (limited to 'src/contract_wrappers/exchange_wrapper.ts')
-rw-r--r-- | src/contract_wrappers/exchange_wrapper.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts index 2360f639d..11a448680 100644 --- a/src/contract_wrappers/exchange_wrapper.ts +++ b/src/contract_wrappers/exchange_wrapper.ts @@ -56,7 +56,7 @@ export class ExchangeWrapper extends ContractWrapper { [ExchangeContractErrCodes.ERROR_FILL_TRUNCATION]: ExchangeContractErrs.OrderFillRoundingError, [ExchangeContractErrCodes.ERROR_FILL_BALANCE_ALLOWANCE]: ExchangeContractErrs.FillBalanceAllowanceError, }; - private _contractAddress?: string; + private _contractAddressIfExists?: string; private static _getOrderAddressesAndValues(order: Order): [OrderAddresses, OrderValues] { const orderAddresses: OrderAddresses = [ order.maker, @@ -75,12 +75,12 @@ export class ExchangeWrapper extends ContractWrapper { ]; return [orderAddresses, orderValues]; } - constructor(web3Wrapper: Web3Wrapper, tokenWrapper: TokenWrapper, contractAddress?: string) { + constructor(web3Wrapper: Web3Wrapper, tokenWrapper: TokenWrapper, contractAddressIfExists?: string) { super(web3Wrapper); this._tokenWrapper = tokenWrapper; this._orderValidationUtils = new OrderValidationUtils(tokenWrapper, this); this._exchangeLogEventEmitters = []; - this._contractAddress = contractAddress; + this._contractAddressIfExists = contractAddressIfExists; } /** * Returns the unavailable takerAmount of an order. Unavailable amount is defined as the total @@ -740,7 +740,7 @@ export class ExchangeWrapper extends ContractWrapper { return this._exchangeContractIfExists; } const contractInstance = await this._instantiateContractIfExistsAsync<ExchangeContract>( - artifacts.ExchangeArtifact, this._contractAddress, + artifacts.ExchangeArtifact, this._contractAddressIfExists, ); this._exchangeContractIfExists = contractInstance as ExchangeContract; return this._exchangeContractIfExists; |