aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-10-06 18:07:01 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-10-06 18:07:01 +0800
commit292aab9b1820a3eae52089e92672f12d5dfe1899 (patch)
tree154a40a5e9861c8fc6f962a76d2ea97e3c66401f /test
parent637183e4b214cc7a215ebf83d18c1a65263d8e7e (diff)
downloaddexon-sol-tools-292aab9b1820a3eae52089e92672f12d5dfe1899.tar
dexon-sol-tools-292aab9b1820a3eae52089e92672f12d5dfe1899.tar.gz
dexon-sol-tools-292aab9b1820a3eae52089e92672f12d5dfe1899.tar.bz2
dexon-sol-tools-292aab9b1820a3eae52089e92672f12d5dfe1899.tar.lz
dexon-sol-tools-292aab9b1820a3eae52089e92672f12d5dfe1899.tar.xz
dexon-sol-tools-292aab9b1820a3eae52089e92672f12d5dfe1899.tar.zst
dexon-sol-tools-292aab9b1820a3eae52089e92672f12d5dfe1899.zip
Use BlockParamLiteral types
Diffstat (limited to 'test')
-rw-r--r--test/exchange_wrapper_test.ts6
-rw-r--r--test/token_wrapper_test.ts6
2 files changed, 6 insertions, 6 deletions
diff --git a/test/exchange_wrapper_test.ts b/test/exchange_wrapper_test.ts
index 371f96954..afc33f1f4 100644
--- a/test/exchange_wrapper_test.ts
+++ b/test/exchange_wrapper_test.ts
@@ -21,7 +21,7 @@ import {
OrderFillOrKillRequest,
LogEvent,
} from '../src';
-import {DoneCallback} from '../src/types';
+import {DoneCallback, BlockParamLiteral} from '../src/types';
import {FillScenarios} from './utils/fill_scenarios';
import {TokenUtils} from './utils/token_utils';
import {assert} from '../src/utils/assert';
@@ -752,8 +752,8 @@ describe('ExchangeWrapper', () => {
const fillableAmount = new BigNumber(5);
const shouldThrowOnInsufficientBalanceOrAllowance = true;
const subscriptionOpts: SubscriptionOpts = {
- fromBlock: 'earliest',
- toBlock: 'latest',
+ fromBlock: BlockParamLiteral.Earliest,
+ toBlock: BlockParamLiteral.Latest,
};
let txHash: string;
before(async () => {
diff --git a/test/token_wrapper_test.ts b/test/token_wrapper_test.ts
index 17f4ac875..50f2db2ac 100644
--- a/test/token_wrapper_test.ts
+++ b/test/token_wrapper_test.ts
@@ -19,7 +19,7 @@ import {
} from '../src';
import {BlockchainLifecycle} from './utils/blockchain_lifecycle';
import {TokenUtils} from './utils/token_utils';
-import {DoneCallback} from '../src/types';
+import {DoneCallback, BlockParamLiteral} from '../src/types';
chaiSetup.configure();
const expect = chai.expect;
@@ -421,8 +421,8 @@ describe('TokenWrapper', () => {
let tokenAddress: string;
let tokenTransferProxyAddress: string;
const subscriptionOpts: SubscriptionOpts = {
- fromBlock: 'earliest',
- toBlock: 'latest',
+ fromBlock: BlockParamLiteral.Earliest,
+ toBlock: BlockParamLiteral.Latest,
};
let txHash: string;
before(async () => {