diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-07 18:20:28 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-07 18:20:28 +0800 |
commit | 09f67322f1548b77ea3835b8a885e8c538835af8 (patch) | |
tree | 54db087854438cc7b55cbb9bd8f27bbf0c56a0df /src/utils | |
parent | 9a2a79a947eeb9f839a381d1ee27cad872636438 (diff) | |
download | dexon-sol-tools-09f67322f1548b77ea3835b8a885e8c538835af8.tar dexon-sol-tools-09f67322f1548b77ea3835b8a885e8c538835af8.tar.gz dexon-sol-tools-09f67322f1548b77ea3835b8a885e8c538835af8.tar.bz2 dexon-sol-tools-09f67322f1548b77ea3835b8a885e8c538835af8.tar.lz dexon-sol-tools-09f67322f1548b77ea3835b8a885e8c538835af8.tar.xz dexon-sol-tools-09f67322f1548b77ea3835b8a885e8c538835af8.tar.zst dexon-sol-tools-09f67322f1548b77ea3835b8a885e8c538835af8.zip |
Remove assertions from utils methods
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/utils.ts | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/utils/utils.ts b/src/utils/utils.ts index 0da83c366..5786bab07 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -2,10 +2,7 @@ import * as _ from 'lodash'; import * as BN from 'bn.js'; import * as ethABI from 'ethereumjs-abi'; import * as ethUtil from 'ethereumjs-util'; -import {orderSchema} from '../schemas/order_schemas'; -import {SchemaValidator} from './schema_validator'; import {Order, SignedOrder, SolidityTypes} from '../types'; -import {assert} from './assert'; import * as BigNumber from 'bignumber.js'; export const utils = { @@ -33,10 +30,6 @@ export const utils = { return new Error(`Unexpected switch value: ${value} encountered for ${name}`); }, getOrderHashHex(order: Order|SignedOrder, exchangeContractAddr: string): string { - assert.doesConformToSchema('order', - SchemaValidator.convertToJSONSchemaCompatibleObject(order as object), - orderSchema); - const orderParts = [ {value: exchangeContractAddr, type: SolidityTypes.address}, {value: order.maker, type: SolidityTypes.address}, |