diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-30 02:05:56 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-30 02:05:56 +0800 |
commit | 3f7bdfa67a06fb62fac78a78da606738c64af666 (patch) | |
tree | f3de35b1d321e553d9d41d1dfe2c57037369d784 /src/contract_wrappers/exchange_wrapper.ts | |
parent | 260def1aefc65fd1b5ae19c86f9c361c795630ed (diff) | |
download | dexon-0x-contracts-3f7bdfa67a06fb62fac78a78da606738c64af666.tar dexon-0x-contracts-3f7bdfa67a06fb62fac78a78da606738c64af666.tar.gz dexon-0x-contracts-3f7bdfa67a06fb62fac78a78da606738c64af666.tar.bz2 dexon-0x-contracts-3f7bdfa67a06fb62fac78a78da606738c64af666.tar.lz dexon-0x-contracts-3f7bdfa67a06fb62fac78a78da606738c64af666.tar.xz dexon-0x-contracts-3f7bdfa67a06fb62fac78a78da606738c64af666.tar.zst dexon-0x-contracts-3f7bdfa67a06fb62fac78a78da606738c64af666.zip |
Factor out exchangeArtifacts variable
Diffstat (limited to 'src/contract_wrappers/exchange_wrapper.ts')
-rw-r--r-- | src/contract_wrappers/exchange_wrapper.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts index a121d524c..08a145b0e 100644 --- a/src/contract_wrappers/exchange_wrapper.ts +++ b/src/contract_wrappers/exchange_wrapper.ts @@ -807,7 +807,8 @@ export class ExchangeWrapper extends ContractWrapper { return this._exchangeContractByAddress[exchangeContractAddress]; } private _getExchangeArtifactsByAddressOrThrow(exchangeContractAddress: string): ContractArtifact { - for (const exchangeArtifact of _.values<ContractArtifact>(ExchangeArtifactsByName)) { + const exchangeArtifacts = _.values<ContractArtifact>(ExchangeArtifactsByName); + for (const exchangeArtifact of exchangeArtifacts) { const exchangeAddressesInAftifact = _.map( _.values(exchangeArtifact.networks), artifactsByNetwork => artifactsByNetwork.address, |