aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/util
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-12-09 00:10:05 +0800
committerGitHub <noreply@github.com>2017-12-09 00:10:05 +0800
commitf109d132e400583f0985a01854a4bc9c12ead883 (patch)
treeb0db651ef7aba234ba6b07ff05695a366db734f8 /packages/contracts/util
parent72ced622d7fddac4d17b7814f45aeea01db23959 (diff)
parente0d79bd332a3f8a9cad5147f33b2bfaf49e6a5c7 (diff)
downloaddexon-sol-tools-f109d132e400583f0985a01854a4bc9c12ead883.tar.gz
dexon-sol-tools-f109d132e400583f0985a01854a4bc9c12ead883.tar.zst
dexon-sol-tools-f109d132e400583f0985a01854a4bc9c12ead883.zip
Merge pull request #253 from 0xProject/feature/web3-wrapper
Refactor web3Wrapper to a separate package
Diffstat (limited to 'packages/contracts/util')
-rw-r--r--packages/contracts/util/order.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/contracts/util/order.ts b/packages/contracts/util/order.ts
index 8e3822188..ec5362b66 100644
--- a/packages/contracts/util/order.ts
+++ b/packages/contracts/util/order.ts
@@ -1,5 +1,5 @@
+import {promisify} from '@0xproject/utils';
import {BigNumber} from 'bignumber.js';
-import promisify = require('es6-promisify');
import ethUtil = require('ethereumjs-util');
import * as _ from 'lodash';
import Web3 = require('web3');
@@ -33,7 +33,7 @@ export class Order {
}
public async signAsync() {
const orderHash = this.getOrderHash();
- const signature = await promisify(web3.eth.sign)(this.params.maker, orderHash);
+ const signature = await promisify<string>(web3.eth.sign)(this.params.maker, orderHash);
const {v, r, s} = ethUtil.fromRpcSig(signature);
this.params = _.assign(this.params, {
orderHashHex: orderHash,