From 583f3e90dd5944b3dc6ab88038d0a65c9f9aa698 Mon Sep 17 00:00:00 2001 From: Theo Date: Sun, 27 Aug 2023 08:28:39 -0700 Subject: [PATCH] Fix JSDoc typings for getGasLimit function in parent fee oracle abstract class --- src/feeOracle.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/feeOracle.ts b/src/feeOracle.ts index e602fa3..f0c29d3 100644 --- a/src/feeOracle.ts +++ b/src/feeOracle.ts @@ -121,9 +121,10 @@ export abstract class TornadoFeeOracle implements ITornadoFeeOracle { * Estimates gas limit for transaction (or basic gas limit, if no tx data provided) * @param {TransactionData} tx Transaction data (object in web3 / ethers format) * @param {TxType} type Tornado transaction type: withdrawal by user, withdrawal by relayer, relayer fee check or 'other' + * @param {number} bumpPercent Gas bump percent to prioritize transaction * @returns {Promise} Gas limit */ - abstract getGasLimit(tx?: TransactionData, type?: TxType): Promise; + abstract getGasLimit(tx?: TransactionData, type?: TxType, bumpPercent?: number): Promise; /** * If user withdraw non-native tokens on ETH or Goerli, we need to calculate refund value: