diff options
author | Fabio Berger <me@fabioberger.com> | 2017-11-24 05:21:45 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-11-24 05:21:45 +0800 |
commit | b7b1721145f3894ade757a2ad4c366e2b6eadbe9 (patch) | |
tree | 0b724c1eb0c218a482a5b31b7438f67c33af61e3 /packages/0x.js/src/order_watcher/order_state_watcher.ts | |
parent | 5068f1666a9d1dec2140f2a98e96bb880e854105 (diff) | |
download | dexon-sol-tools-b7b1721145f3894ade757a2ad4c366e2b6eadbe9.tar dexon-sol-tools-b7b1721145f3894ade757a2ad4c366e2b6eadbe9.tar.gz dexon-sol-tools-b7b1721145f3894ade757a2ad4c366e2b6eadbe9.tar.bz2 dexon-sol-tools-b7b1721145f3894ade757a2ad4c366e2b6eadbe9.tar.lz dexon-sol-tools-b7b1721145f3894ade757a2ad4c366e2b6eadbe9.tar.xz dexon-sol-tools-b7b1721145f3894ade757a2ad4c366e2b6eadbe9.tar.zst dexon-sol-tools-b7b1721145f3894ade757a2ad4c366e2b6eadbe9.zip |
Pass 'latest' to ExchangeTransferSimulator when used for validating orders, and pass 'pending' when used in the order watcher.
Diffstat (limited to 'packages/0x.js/src/order_watcher/order_state_watcher.ts')
-rw-r--r-- | packages/0x.js/src/order_watcher/order_state_watcher.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/0x.js/src/order_watcher/order_state_watcher.ts b/packages/0x.js/src/order_watcher/order_state_watcher.ts index 44a41669d..d02e31160 100644 --- a/packages/0x.js/src/order_watcher/order_state_watcher.ts +++ b/packages/0x.js/src/order_watcher/order_state_watcher.ts @@ -74,7 +74,9 @@ export class OrderStateWatcher { this._web3Wrapper = web3Wrapper; const pollingIntervalIfExistsMs = _.isUndefined(config) ? undefined : config.eventPollingIntervalMs; this._eventWatcher = new EventWatcher(web3Wrapper, pollingIntervalIfExistsMs); - this._balanceAndProxyAllowanceLazyStore = new BalanceAndProxyAllowanceLazyStore(token); + this._balanceAndProxyAllowanceLazyStore = new BalanceAndProxyAllowanceLazyStore( + token, BlockParamLiteral.Pending, + ); this._orderFilledCancelledLazyStore = new OrderFilledCancelledLazyStore(exchange); this._orderStateUtils = new OrderStateUtils( this._balanceAndProxyAllowanceLazyStore, this._orderFilledCancelledLazyStore, |