From 4cb3e5aceea760f85d2352209ce52987aa0d06e8 Mon Sep 17 00:00:00 2001 From: artemkolodko Date: Wed, 27 Sep 2023 09:24:27 +0100 Subject: [PATCH] Fix linter warnings --- src/modules/payment/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/payment/index.ts b/src/modules/payment/index.ts index 701d48bf..8e2a7560 100644 --- a/src/modules/payment/index.ts +++ b/src/modules/payment/index.ts @@ -200,13 +200,13 @@ export class BotPayments { return bn(estimatedFee) } - private async estimateTransferFee() { + private async estimateTransferFee (): Promise { const web3 = new Web3(this.rpcURL) const gasPrice = await web3.eth.getGasPrice() const txBody = { from: this.holderAddress, to: this.holderAddress, - value: web3.utils.toHex('0'), + value: web3.utils.toHex('0') } const estimatedGas = await web3.eth.estimateGas(txBody) return estimatedGas * +gasPrice