diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-13 02:06:25 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-13 09:06:13 +0800 |
commit | a9ae555b88cc36ff2cbd92fdd37a339702860c01 (patch) | |
tree | d42ed590c81683a3f6acd0882d31392a9a97f1ca /src/utils | |
parent | d4dc428124a210cc6b8e1c50527a08e902bfadd0 (diff) | |
download | dexon-sol-tools-a9ae555b88cc36ff2cbd92fdd37a339702860c01.tar dexon-sol-tools-a9ae555b88cc36ff2cbd92fdd37a339702860c01.tar.gz dexon-sol-tools-a9ae555b88cc36ff2cbd92fdd37a339702860c01.tar.bz2 dexon-sol-tools-a9ae555b88cc36ff2cbd92fdd37a339702860c01.tar.lz dexon-sol-tools-a9ae555b88cc36ff2cbd92fdd37a339702860c01.tar.xz dexon-sol-tools-a9ae555b88cc36ff2cbd92fdd37a339702860c01.tar.zst dexon-sol-tools-a9ae555b88cc36ff2cbd92fdd37a339702860c01.zip |
Store number of confirmations in a blockStore
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/exchange_transfer_simulator.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/exchange_transfer_simulator.ts b/src/utils/exchange_transfer_simulator.ts index cd46397ed..475dcf953 100644 --- a/src/utils/exchange_transfer_simulator.ts +++ b/src/utils/exchange_transfer_simulator.ts @@ -37,9 +37,9 @@ export class ExchangeTransferSimulator { private store: BalanceAndProxyAllowanceLazyStore; private UNLIMITED_ALLOWANCE_IN_BASE_UNITS: BigNumber; constructor(token: TokenWrapper) { - const blockStore = new BlockStore(); const latestBlockConfirmationNumber = 1; - this.store = new BalanceAndProxyAllowanceLazyStore(token, blockStore, latestBlockConfirmationNumber); + const blockStore = new BlockStore(latestBlockConfirmationNumber); + this.store = new BalanceAndProxyAllowanceLazyStore(token, blockStore); this.UNLIMITED_ALLOWANCE_IN_BASE_UNITS = token.UNLIMITED_ALLOWANCE_IN_BASE_UNITS; } /** |