diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-07 20:40:28 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-07 20:40:28 +0800 |
commit | c3cd5812e61359b18c469f70c9f0240db777e67a (patch) | |
tree | 829eb263a6fc8b036632ba0c769de0f67b78d209 /src/utils | |
parent | 91101eb8ec4057617e644df4439c626093d4b3cc (diff) | |
download | dexon-0x-contracts-c3cd5812e61359b18c469f70c9f0240db777e67a.tar.gz dexon-0x-contracts-c3cd5812e61359b18c469f70c9f0240db777e67a.tar.zst dexon-0x-contracts-c3cd5812e61359b18c469f70c9f0240db777e67a.zip |
Refactor to use OrderCancellationRequest
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/assert.ts | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/utils/assert.ts b/src/utils/assert.ts index 61b7527e6..4dc6945a2 100644 --- a/src/utils/assert.ts +++ b/src/utils/assert.ts @@ -42,12 +42,6 @@ export const assert = { const availableAddresses = await web3Wrapper.getAvailableAddressesAsync(); this.assert(!_.isEmpty(availableAddresses), 'No addresses were available on the provided web3 instance'); }, - isSameLength(variableName1: string, value1: any[], variableName2: string, value2: any[]) { - const length1 = value1.length; - const length2 = value2.length; - this.assert(length1 === length2, `${variableName1} and ${variableName2} length mismatch. \ -${length1} != ${length2}`); - }, isNumber(variableName: string, value: number): void { this.assert(_.isFinite(value), this.typeAssertionMessage(variableName, 'number', value)); }, |