Skip to content

Commit 6fd010a

Browse files
authored
Merge pull request #902 from starknet-io/v6/fix/acc-version
fix: estimateFeeBulk provided version
2 parents f580edb + da717be commit 6fd010a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/account/default.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,12 +245,15 @@ export class Account extends Provider implements AccountInterface {
245245
invocations: Invocations,
246246
details: UniversalDetails = {}
247247
): Promise<EstimateFeeBulk> {
248-
const { nonce, blockIdentifier } = details;
248+
const { nonce, blockIdentifier, version } = details;
249249
const accountInvocations = await this.accountInvocationsFactory(invocations, {
250250
...v3Details(details),
251251
versions: [
252252
ETransactionVersion.F1, // non-sierra
253-
this.getPreferredVersion(ETransactionVersion.F2, ETransactionVersion.F3), // sierra
253+
toTransactionVersion(
254+
this.getPreferredVersion(ETransactionVersion.F2, ETransactionVersion.F3),
255+
version
256+
), // sierra
254257
],
255258
nonce,
256259
blockIdentifier,

0 commit comments

Comments
 (0)