From da717be8e656087eaba21c865a6dd0b648664491 Mon Sep 17 00:00:00 2001 From: Toni Tabak Date: Tue, 19 Dec 2023 15:31:45 +0100 Subject: [PATCH] fix: estimateFeeBulk provided version --- src/account/default.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/account/default.ts b/src/account/default.ts index 743671d28..f17749190 100644 --- a/src/account/default.ts +++ b/src/account/default.ts @@ -245,12 +245,15 @@ export class Account extends Provider implements AccountInterface { invocations: Invocations, details: UniversalDetails = {} ): Promise { - const { nonce, blockIdentifier } = details; + const { nonce, blockIdentifier, version } = details; const accountInvocations = await this.accountInvocationsFactory(invocations, { ...v3Details(details), versions: [ ETransactionVersion.F1, // non-sierra - this.getPreferredVersion(ETransactionVersion.F2, ETransactionVersion.F3), // sierra + toTransactionVersion( + this.getPreferredVersion(ETransactionVersion.F2, ETransactionVersion.F3), + version + ), // sierra ], nonce, blockIdentifier,