From c1aabdf9a63ce23574c675c3d39ccb49f13c274c Mon Sep 17 00:00:00 2001 From: Eric Su <60202455+GHesericsu@users.noreply.github.com> Date: Mon, 19 Dec 2022 18:19:54 +0000 Subject: [PATCH] refactor: change param type in sendAndConfirmRawTransaction --- web3.js/src/utils/send-and-confirm-raw-transaction.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/web3.js/src/utils/send-and-confirm-raw-transaction.ts b/web3.js/src/utils/send-and-confirm-raw-transaction.ts index 78620f69e58eb8..da1178e9db58a8 100644 --- a/web3.js/src/utils/send-and-confirm-raw-transaction.ts +++ b/web3.js/src/utils/send-and-confirm-raw-transaction.ts @@ -4,7 +4,8 @@ import { BlockheightBasedTransactionConfirmationStrategy, Connection, DurableNonceTransactionConfirmationStrategy, -TransactionConfirmationStrategy} from '../connection'; + TransactionConfirmationStrategy, +} from '../connection'; import type {TransactionSignature} from '../transaction'; import type {ConfirmOptions} from '../connection'; @@ -15,14 +16,14 @@ import type {ConfirmOptions} from '../connection'; * * @param {Connection} connection * @param {Buffer} rawTransaction - * @param {BlockheightBasedTransactionConfirmationStrategy} confirmationStrategy + * @param {TransactionConfirmationStrategy} confirmationStrategy * @param {ConfirmOptions} [options] * @returns {Promise} */ export async function sendAndConfirmRawTransaction( connection: Connection, rawTransaction: Buffer, - confirmationStrategy: BlockheightBasedTransactionConfirmationStrategy, + confirmationStrategy: TransactionConfirmationStrategy, options?: ConfirmOptions, ): Promise;