aboutsummaryrefslogtreecommitdiffstats
path: root/src/ts/0x.js.ts
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-05-25 18:53:37 +0800
committerGitHub <noreply@github.com>2017-05-25 18:53:37 +0800
commitdc1ca23e3006dc614e512353aa2ae354e584f1cf (patch)
tree3016829f0dabe508af7f52e3d4893c7e7d0b8de3 /src/ts/0x.js.ts
parent5d64b562c60710e9b9b6a6286d4278718f043d0d (diff)
parentb1a6c895cc095b39c263ff508d98395b1b901dc6 (diff)
downloaddexon-sol-tools-dc1ca23e3006dc614e512353aa2ae354e584f1cf.tar
dexon-sol-tools-dc1ca23e3006dc614e512353aa2ae354e584f1cf.tar.gz
dexon-sol-tools-dc1ca23e3006dc614e512353aa2ae354e584f1cf.tar.bz2
dexon-sol-tools-dc1ca23e3006dc614e512353aa2ae354e584f1cf.tar.lz
dexon-sol-tools-dc1ca23e3006dc614e512353aa2ae354e584f1cf.tar.xz
dexon-sol-tools-dc1ca23e3006dc614e512353aa2ae354e584f1cf.tar.zst
dexon-sol-tools-dc1ca23e3006dc614e512353aa2ae354e584f1cf.zip
Merge branch 'master' into isValidOrderHash
Diffstat (limited to 'src/ts/0x.js.ts')
-rw-r--r--src/ts/0x.js.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ts/0x.js.ts b/src/ts/0x.js.ts
index 89d049bec..d189b48b1 100644
--- a/src/ts/0x.js.ts
+++ b/src/ts/0x.js.ts
@@ -1,6 +1,7 @@
import * as BigNumber from 'bignumber.js';
import * as ethUtil from 'ethereumjs-util';
import {assert} from './utils/assert';
+import {ECSignatureSchema} from './schemas/ec_signature_schema';
/**
* Elliptic Curve signature
@@ -21,7 +22,7 @@ export class ZeroEx {
*/
public static isValidSignature(dataHex: string, signature: ECSignature, signer: ETHAddressHex): boolean {
assert.isHexString('dataHex', dataHex);
- assert.isObject('signature', signature);
+ assert.doesConformToSchema('signature', signature, ECSignatureSchema);
assert.isETHAddressHex('signer', signer);
const dataBuff = ethUtil.toBuffer(dataHex);