aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src/contract.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-11-23 06:19:06 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-24 05:13:37 +0800
commit010e6f8d7f7403cb91c020fc501fdb4f59861c58 (patch)
tree7f854bbf95efed9688f144943df7a8c326c3c65e /packages/0x.js/src/contract.ts
parent3d5b6ec110e32f670920a88939a250479651bb5a (diff)
downloaddexon-sol-tools-010e6f8d7f7403cb91c020fc501fdb4f59861c58.tar
dexon-sol-tools-010e6f8d7f7403cb91c020fc501fdb4f59861c58.tar.gz
dexon-sol-tools-010e6f8d7f7403cb91c020fc501fdb4f59861c58.tar.bz2
dexon-sol-tools-010e6f8d7f7403cb91c020fc501fdb4f59861c58.tar.lz
dexon-sol-tools-010e6f8d7f7403cb91c020fc501fdb4f59861c58.tar.xz
dexon-sol-tools-010e6f8d7f7403cb91c020fc501fdb4f59861c58.tar.zst
dexon-sol-tools-010e6f8d7f7403cb91c020fc501fdb4f59861c58.zip
Fix the imports order
Diffstat (limited to 'packages/0x.js/src/contract.ts')
-rw-r--r--packages/0x.js/src/contract.ts9
1 files changed, 5 insertions, 4 deletions
diff --git a/packages/0x.js/src/contract.ts b/packages/0x.js/src/contract.ts
index 7ccd336d6..e9c49c9f1 100644
--- a/packages/0x.js/src/contract.ts
+++ b/packages/0x.js/src/contract.ts
@@ -1,7 +1,8 @@
-import * as Web3 from 'web3';
-import * as _ from 'lodash';
+import {schemas, SchemaValidator} from '@0xproject/json-schemas';
import promisify = require('es6-promisify');
-import {SchemaValidator, schemas} from '@0xproject/json-schemas';
+import * as _ from 'lodash';
+import * as Web3 from 'web3';
+
import {AbiType} from './types';
export class Contract implements Web3.ContractInstance {
@@ -47,7 +48,7 @@ export class Contract implements Web3.ContractInstance {
});
}
private promisifyWithDefaultParams(fn: (...args: any[]) => void): (...args: any[]) => Promise<any> {
- const promisifiedWithDefaultParams = (...args: any[]) => {
+ const promisifiedWithDefaultParams = async (...args: any[]) => {
const promise = new Promise((resolve, reject) => {
const lastArg = args[args.length - 1];
let txData: Partial<Web3.TxData> = {};