aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/exchange_transfer_simulator.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-11-13 02:06:25 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-13 09:06:13 +0800
commita9ae555b88cc36ff2cbd92fdd37a339702860c01 (patch)
treed42ed590c81683a3f6acd0882d31392a9a97f1ca /src/utils/exchange_transfer_simulator.ts
parentd4dc428124a210cc6b8e1c50527a08e902bfadd0 (diff)
downloaddexon-0x-contracts-a9ae555b88cc36ff2cbd92fdd37a339702860c01.tar
dexon-0x-contracts-a9ae555b88cc36ff2cbd92fdd37a339702860c01.tar.gz
dexon-0x-contracts-a9ae555b88cc36ff2cbd92fdd37a339702860c01.tar.bz2
dexon-0x-contracts-a9ae555b88cc36ff2cbd92fdd37a339702860c01.tar.lz
dexon-0x-contracts-a9ae555b88cc36ff2cbd92fdd37a339702860c01.tar.xz
dexon-0x-contracts-a9ae555b88cc36ff2cbd92fdd37a339702860c01.tar.zst
dexon-0x-contracts-a9ae555b88cc36ff2cbd92fdd37a339702860c01.zip
Store number of confirmations in a blockStore
Diffstat (limited to 'src/utils/exchange_transfer_simulator.ts')
-rw-r--r--src/utils/exchange_transfer_simulator.ts4
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;
}
/**