aboutsummaryrefslogtreecommitdiffstats
path: root/src/ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-05-26 23:09:34 +0800
committerFabio Berger <me@fabioberger.com>2017-05-26 23:09:34 +0800
commite545ade857501fae7ccc9ad27da6ab3803a5ffd8 (patch)
tree3160edd61ad8ef6ca338ce518e94c05ee746bcc2 /src/ts
parent3cf25d0787448f58930dcd9ec9bf040530278486 (diff)
downloaddexon-sol-tools-e545ade857501fae7ccc9ad27da6ab3803a5ffd8.tar
dexon-sol-tools-e545ade857501fae7ccc9ad27da6ab3803a5ffd8.tar.gz
dexon-sol-tools-e545ade857501fae7ccc9ad27da6ab3803a5ffd8.tar.bz2
dexon-sol-tools-e545ade857501fae7ccc9ad27da6ab3803a5ffd8.tar.lz
dexon-sol-tools-e545ade857501fae7ccc9ad27da6ab3803a5ffd8.tar.xz
dexon-sol-tools-e545ade857501fae7ccc9ad27da6ab3803a5ffd8.tar.zst
dexon-sol-tools-e545ade857501fae7ccc9ad27da6ab3803a5ffd8.zip
Spacing and import re-order
Diffstat (limited to 'src/ts')
-rw-r--r--src/ts/0x.js.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ts/0x.js.ts b/src/ts/0x.js.ts
index 7c6557b5b..8496a0989 100644
--- a/src/ts/0x.js.ts
+++ b/src/ts/0x.js.ts
@@ -1,14 +1,14 @@
import * as BigNumber from 'bignumber.js';
import * as BN from 'bn.js';
import * as ethUtil from 'ethereumjs-util';
+import contract = require('truffle-contract');
import * as Web3 from 'web3';
+import {Web3Wrapper} from './web3_wrapper';
import * as ethABI from 'ethereumjs-abi';
import * as _ from 'lodash';
import {constants} from './utils/constants';
import {assert} from './utils/assert';
-import {Web3Wrapper} from './web3_wrapper';
import {ExchangeWrapper} from './contract_wrappers/exchange_wrapper';
-import contract = require('truffle-contract');
import {ECSignatureSchema} from './schemas/ec_signature_schema';
import {SolidityTypes, ECSignature} from './types';
@@ -71,7 +71,8 @@ export class ZeroEx {
const dataBuff = ethUtil.toBuffer(dataHex);
const msgHashBuff = ethUtil.hashPersonalMessage(dataBuff);
try {
- const pubKey = ethUtil.ecrecover(msgHashBuff,
+ const pubKey = ethUtil.ecrecover(
+ msgHashBuff,
signature.v,
ethUtil.toBuffer(signature.r),
ethUtil.toBuffer(signature.s));