Skip to content

Commit

Permalink
Fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemKolodko committed Sep 27, 2023
1 parent 6f5fa30 commit 4cb3e5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/payment/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,13 @@ export class BotPayments {
return bn(estimatedFee)
}

private async estimateTransferFee() {
private async estimateTransferFee (): Promise<number> {
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
Expand Down

0 comments on commit 4cb3e5a

Please sign in to comment.