diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-06-02 07:17:27 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-06-02 07:18:22 +0800 |
commit | e4a8b175225108c66778372166e52b7d5a18333f (patch) | |
tree | dbb4325bdd924455cb98dbfecbdb2dac4a9683f9 | |
parent | 448df1bb9c4011a385d5afa22f678786ba9d2c47 (diff) | |
download | dexon-sol-tools-e4a8b175225108c66778372166e52b7d5a18333f.tar dexon-sol-tools-e4a8b175225108c66778372166e52b7d5a18333f.tar.gz dexon-sol-tools-e4a8b175225108c66778372166e52b7d5a18333f.tar.bz2 dexon-sol-tools-e4a8b175225108c66778372166e52b7d5a18333f.tar.lz dexon-sol-tools-e4a8b175225108c66778372166e52b7d5a18333f.tar.xz dexon-sol-tools-e4a8b175225108c66778372166e52b7d5a18333f.tar.zst dexon-sol-tools-e4a8b175225108c66778372166e52b7d5a18333f.zip |
Remove unused promises array
-rw-r--r-- | packages/contracts/src/utils/erc20_wrapper.ts | 3 | ||||
-rw-r--r-- | packages/contracts/src/utils/erc721_wrapper.ts | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/packages/contracts/src/utils/erc20_wrapper.ts b/packages/contracts/src/utils/erc20_wrapper.ts index f58fa94fe..dceeceeea 100644 --- a/packages/contracts/src/utils/erc20_wrapper.ts +++ b/packages/contracts/src/utils/erc20_wrapper.ts @@ -52,8 +52,6 @@ export class ERC20Wrapper { public async setBalancesAndAllowancesAsync(): Promise<void> { this._validateDummyTokenContractsExistOrThrow(); this._validateProxyContractExistsOrThrow(); - const setBalancePromises: Array<Promise<string>> = []; - const setAllowancePromises: Array<Promise<string>> = []; for (const dummyTokenContract of this._dummyTokenContracts) { for (const tokenOwnerAddress of this._tokenOwnerAddresses) { await this._web3Wrapper.awaitTransactionSuccessAsync( @@ -79,7 +77,6 @@ export class ERC20Wrapper { this._validateDummyTokenContractsExistOrThrow(); const balancesByOwner: ERC20BalancesByOwner = {}; const balances: BigNumber[] = []; - const balancePromises: Array<Promise<BigNumber>> = []; const balanceInfo: Array<{ tokenOwnerAddress: string; tokenAddress: string }> = []; for (const dummyTokenContract of this._dummyTokenContracts) { for (const tokenOwnerAddress of this._tokenOwnerAddresses) { diff --git a/packages/contracts/src/utils/erc721_wrapper.ts b/packages/contracts/src/utils/erc721_wrapper.ts index d5c278de1..13fdf630e 100644 --- a/packages/contracts/src/utils/erc721_wrapper.ts +++ b/packages/contracts/src/utils/erc721_wrapper.ts @@ -52,8 +52,6 @@ export class ERC721Wrapper { public async setBalancesAndAllowancesAsync(): Promise<void> { this._validateDummyTokenContractsExistOrThrow(); this._validateProxyContractExistsOrThrow(); - const setBalancePromises: Array<Promise<string>> = []; - const setAllowancePromises: Array<Promise<string>> = []; this._initialTokenIdsByOwner = {}; for (const dummyTokenContract of this._dummyTokenContracts) { for (const tokenOwnerAddress of this._tokenOwnerAddresses) { @@ -92,7 +90,6 @@ export class ERC721Wrapper { this._validateBalancesAndAllowancesSetOrThrow(); const tokenIdsByOwner: ERC721TokenIdsByOwner = {}; const tokenOwnerAddresses: string[] = []; - const tokenOwnerPromises: Array<Promise<string>> = []; const tokenInfo: Array<{ tokenId: BigNumber; tokenAddress: string }> = []; for (const dummyTokenContract of this._dummyTokenContracts) { for (const tokenOwnerAddress of this._tokenOwnerAddresses) { |