aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src/utils/assert.ts
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-12-16 02:03:01 +0800
committerGitHub <noreply@github.com>2017-12-16 02:03:01 +0800
commit3eb08735d4d0fe4b046dd6b74f5ed503cf5c64e3 (patch)
tree38a2de1b15985590b879f71fc17cbee35a17ba78 /packages/0x.js/src/utils/assert.ts
parentde8c445f961e1a09bed6a01397e36b96e0ea3d9a (diff)
parentc8e52882ca556ea06696a56e312f69284f99aa29 (diff)
downloaddexon-sol-tools-3eb08735d4d0fe4b046dd6b74f5ed503cf5c64e3.tar
dexon-sol-tools-3eb08735d4d0fe4b046dd6b74f5ed503cf5c64e3.tar.gz
dexon-sol-tools-3eb08735d4d0fe4b046dd6b74f5ed503cf5c64e3.tar.bz2
dexon-sol-tools-3eb08735d4d0fe4b046dd6b74f5ed503cf5c64e3.tar.lz
dexon-sol-tools-3eb08735d4d0fe4b046dd6b74f5ed503cf5c64e3.tar.xz
dexon-sol-tools-3eb08735d4d0fe4b046dd6b74f5ed503cf5c64e3.tar.zst
dexon-sol-tools-3eb08735d4d0fe4b046dd6b74f5ed503cf5c64e3.zip
Merge pull request #266 from 0xProject/fix/no-unused-vars
Remove all unused vars and imports
Diffstat (limited to 'packages/0x.js/src/utils/assert.ts')
-rw-r--r--packages/0x.js/src/utils/assert.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/0x.js/src/utils/assert.ts b/packages/0x.js/src/utils/assert.ts
index 4cf6caf77..86a6a7c01 100644
--- a/packages/0x.js/src/utils/assert.ts
+++ b/packages/0x.js/src/utils/assert.ts
@@ -1,15 +1,15 @@
import {assert as sharedAssert} from '@0xproject/assert';
-import {Schema, SchemaValidator} from '@0xproject/json-schemas';
+// We need those two unused imports because they're actually used by sharedAssert which gets injected here
+// tslint:disable-next-line:no-unused-variable
+import {Schema} from '@0xproject/json-schemas';
import {Web3Wrapper} from '@0xproject/web3-wrapper';
-import BigNumber from 'bignumber.js';
+// tslint:disable-next-line:no-unused-variable
+import * as BigNumber from 'bignumber.js';
import * as _ from 'lodash';
-import * as Web3 from 'web3';
import {ECSignature} from '../types';
import {signatureUtils} from '../utils/signature_utils';
-const HEX_REGEX = /^0x[0-9A-F]*$/i;
-
export const assert = {
...sharedAssert,
isValidSignature(orderHash: string, ecSignature: ECSignature, signerAddress: string) {