diff options
Diffstat (limited to 'src/ts')
-rw-r--r-- | src/ts/utils/utils.ts | 2 | ||||
-rw-r--r-- | src/ts/web3_wrapper.ts | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/ts/utils/utils.ts b/src/ts/utils/utils.ts index 893f82ca3..04ac36b54 100644 --- a/src/ts/utils/utils.ts +++ b/src/ts/utils/utils.ts @@ -1,5 +1,5 @@ export const utils = { - consoleLog(message: string) { + consoleLog(message: string): void { /* tslint:disable */ console.log(message); /* tslint:enable */ diff --git a/src/ts/web3_wrapper.ts b/src/ts/web3_wrapper.ts index ec3be994f..969c2c040 100644 --- a/src/ts/web3_wrapper.ts +++ b/src/ts/web3_wrapper.ts @@ -34,7 +34,7 @@ export class Web3Wrapper { public getCurrentProvider(): Web3.Provider { return this.web3.currentProvider; } - public async getNetworkIdIfExistsAsync() { + public async getNetworkIdIfExistsAsync(): Promise<number|undefined> { try { const networkId = await this.getNetworkAsync(); return Number(networkId); @@ -64,7 +64,7 @@ export class Web3Wrapper { const {timestamp} = await promisify(this.web3.eth.getBlock)(blockHash); return timestamp; } - private async getNetworkAsync() { + private async getNetworkAsync(): Promise<number> { const networkId = await promisify(this.web3.version.getNetwork)(); return networkId; } |