-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: createCalcFee bug #587
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. DQ: Is there a better message than just 'Error', not sure if that bubbles up into something else
Yea just noticed that, putting a better message in there. Good question for sure! Fixed the error message |
@@ -19,6 +20,7 @@ import block7354817 from './7354817.json'; | |||
import block7519631 from './7519631.json'; | |||
|
|||
export const kusamaEndpoints = [ | |||
['/blocks/9253', JSON.stringify(block9253)], //v1020 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
[BUG] Urgent
Using Kusama as an example querying any block with a runtime less than 1062 (the minimum runtime version used to calc fees for kusama) will throw an error because
api.query.transactionPayment?.nextFeeMultiplier?.at
Multiplier
type isnt supported.Currently there is no check before
api.query.transactionPayment?.nextFeeMultiplier?.at
to make sure we don't calculate any fees for runtime's less than the least known runtime for fee's.This PR fixes that by adding a check.