diff options
author | Fabio Berger <me@fabioberger.com> | 2017-11-28 11:38:09 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-11-28 11:38:09 +0800 |
commit | 0a19ba3014ac68c1c94fcb376bc1ddb5081db757 (patch) | |
tree | 0f7a8572c1fb6172b3f0474dd6e6356f569f8760 /packages/website/ts/web3_wrapper.ts | |
parent | 88bd0f5328863141564faf2718118594732b66ca (diff) | |
download | dexon-0x-contracts-0a19ba3014ac68c1c94fcb376bc1ddb5081db757.tar.gz dexon-0x-contracts-0a19ba3014ac68c1c94fcb376bc1ddb5081db757.tar.zst dexon-0x-contracts-0a19ba3014ac68c1c94fcb376bc1ddb5081db757.zip |
Fix tslint issues
Diffstat (limited to 'packages/website/ts/web3_wrapper.ts')
-rw-r--r-- | packages/website/ts/web3_wrapper.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/website/ts/web3_wrapper.ts b/packages/website/ts/web3_wrapper.ts index 24279f5d2..c43436c7e 100644 --- a/packages/website/ts/web3_wrapper.ts +++ b/packages/website/ts/web3_wrapper.ts @@ -1,8 +1,8 @@ -import * as _ from 'lodash'; -import Web3 = require('web3'); import BigNumber from 'bignumber.js'; import promisify = require('es6-promisify'); +import * as _ from 'lodash'; import {Dispatcher} from 'ts/redux/dispatcher'; +import Web3 = require('web3'); export class Web3Wrapper { private dispatcher: Dispatcher; @@ -21,6 +21,7 @@ export class Web3Wrapper { this.web3 = new Web3(); this.web3.setProvider(provider); + // tslint:disable-next-line:no-floating-promises this.startEmittingNetworkConnectionAndUserBalanceStateAsync(); } public isAddress(address: string) { @@ -35,7 +36,7 @@ export class Web3Wrapper { if (_.isEmpty(addresses)) { return ''; } - return (addresses as string[])[0]; + return (addresses)[0]; } public async getNodeVersionAsync() { const nodeVersion = await promisify(this.web3.version.getNode)(); |