diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-11 01:12:30 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-13 09:03:18 +0800 |
commit | 6edae865168dc86a5a3b39558158d22a4ff3bd99 (patch) | |
tree | 9a22715c9b5d060dbac6d79f6c595e834e59a41f /src/utils/exchange_transfer_simulator.ts | |
parent | f163e6d8cc53dbbfd65168c977aa53c5ab9b3c08 (diff) | |
download | dexon-0x-contracts-6edae865168dc86a5a3b39558158d22a4ff3bd99.tar.gz dexon-0x-contracts-6edae865168dc86a5a3b39558158d22a4ff3bd99.tar.zst dexon-0x-contracts-6edae865168dc86a5a3b39558158d22a4ff3bd99.zip |
Make store configurable by blockParam
Diffstat (limited to 'src/utils/exchange_transfer_simulator.ts')
-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 ecdec0be0..56bd48f17 100644 --- a/src/utils/exchange_transfer_simulator.ts +++ b/src/utils/exchange_transfer_simulator.ts @@ -1,6 +1,6 @@ import * as _ from 'lodash'; import BigNumber from 'bignumber.js'; -import {ExchangeContractErrs, TradeSide, TransferType} from '../types'; +import {ExchangeContractErrs, TradeSide, TransferType, BlockParamLiteral} from '../types'; import {TokenWrapper} from '../contract_wrappers/token_wrapper'; import {BalanceAndProxyAllowanceLazyStore} from '../stores/balance_proxy_allowance_lazy_store'; @@ -36,7 +36,7 @@ export class ExchangeTransferSimulator { private store: BalanceAndProxyAllowanceLazyStore; private UNLIMITED_ALLOWANCE_IN_BASE_UNITS: BigNumber; constructor(token: TokenWrapper) { - this.store = new BalanceAndProxyAllowanceLazyStore(token); + this.store = new BalanceAndProxyAllowanceLazyStore(token, BlockParamLiteral.Latest); this.UNLIMITED_ALLOWANCE_IN_BASE_UNITS = token.UNLIMITED_ALLOWANCE_IN_BASE_UNITS; } /** |