Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

chore: clean up weights + estimates #960

Merged
merged 8 commits into from
May 8, 2023
Merged

Conversation

harrysolovay
Copy link
Contributor

@harrysolovay harrysolovay commented May 3, 2023

  • Renames estimateFee to weight (which is what it actually is)
  • Adds an estimate method to ExtrinsicRune which actually returns the estimate (a bigint)

NOTE: the TransactionPaymentApi_query_weight_to_fee endpoint is currently Westend-only, but will supposedly make its way into Polkadot (correct @statictype ?).

@harrysolovay harrysolovay requested a review from tjjfvi as a code owner May 3, 2023 15:18
fluent/ExtrinsicRune.ts Outdated Show resolved Hide resolved
@statictype
Copy link

statictype commented May 3, 2023

yes, it is already on Kusama as far as I see. it's part of runtime v9381

kratico
kratico previously approved these changes May 5, 2023
Copy link
Contributor

@kratico kratico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

fluent/ExtrinsicRune.ts Outdated Show resolved Hide resolved
fluent/ExtrinsicRune.ts Outdated Show resolved Hide resolved
@harrysolovay harrysolovay added this pull request to the merge queue May 8, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 8, 2023
@harrysolovay harrysolovay added this pull request to the merge queue May 8, 2023
Merged via the queue into main with commit e8d9f6b May 8, 2023
@harrysolovay harrysolovay deleted the clean-up-estimates branch May 8, 2023 14:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants