aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/test/exchange_transfer_simulator_test.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-11-24 05:21:45 +0800
committerFabio Berger <me@fabioberger.com>2017-11-24 05:21:45 +0800
commitb7b1721145f3894ade757a2ad4c366e2b6eadbe9 (patch)
tree0b724c1eb0c218a482a5b31b7438f67c33af61e3 /packages/0x.js/test/exchange_transfer_simulator_test.ts
parent5068f1666a9d1dec2140f2a98e96bb880e854105 (diff)
downloaddexon-sol-tools-b7b1721145f3894ade757a2ad4c366e2b6eadbe9.tar.gz
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/test/exchange_transfer_simulator_test.ts')
-rw-r--r--packages/0x.js/test/exchange_transfer_simulator_test.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/0x.js/test/exchange_transfer_simulator_test.ts b/packages/0x.js/test/exchange_transfer_simulator_test.ts
index 99cb7fb4f..ec2c045fc 100644
--- a/packages/0x.js/test/exchange_transfer_simulator_test.ts
+++ b/packages/0x.js/test/exchange_transfer_simulator_test.ts
@@ -37,7 +37,7 @@ describe('ExchangeTransferSimulator', () => {
});
describe('#transferFromAsync', () => {
beforeEach(() => {
- exchangeTransferSimulator = new ExchangeTransferSimulator(zeroEx.token);
+ exchangeTransferSimulator = new ExchangeTransferSimulator(zeroEx.token, BlockParamLiteral.Latest);
});
it('throws if the user doesn\'t have enough allowance', async () => {
return expect(exchangeTransferSimulator.transferFromAsync(