Skip to content

Commit

Permalink
fix: ignore block hash when estimating fees
Browse files Browse the repository at this point in the history
  • Loading branch information
0xKheops committed Jan 3, 2025
1 parent 477d397 commit ef85d83
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/extension/src/ui/util/getExtrinsicDispatchInfo.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { GenericExtrinsic } from "@polkadot/types"
import { assert } from "@polkadot/util"
import { HexString } from "@polkadot/util/types"

import { stateCall } from "./stateCall"

Expand All @@ -12,7 +11,6 @@ type ExtrinsicDispatchInfo = {
export const getExtrinsicDispatchInfo = async (
chainId: string,
signedExtrinsic: GenericExtrinsic,
blockHash?: HexString,
): Promise<ExtrinsicDispatchInfo> => {
assert(signedExtrinsic.isSigned, "Extrinsic must be signed (or fakeSigned) in order to query fee")

Expand All @@ -23,7 +21,7 @@ export const getExtrinsicDispatchInfo = async (
"TransactionPaymentApi_query_info",
"RuntimeDispatchInfo",
[signedExtrinsic, len],
blockHash,
undefined,
true,
)

Expand Down

0 comments on commit ef85d83

Please sign in to comment.