Skip to content

Fix fee calculation for kusama#72

Merged
joepetrowski merged 1 commit intomasterfrom
at-fix-kusama-fee
Jun 11, 2020
Merged

Fix fee calculation for kusama#72
joepetrowski merged 1 commit intomasterfrom
at-fix-kusama-fee

Conversation

@athei
Copy link
Member

@athei athei commented Jun 9, 2020

The current kusama runtime (1062) uses an older Fixed128 implementation than polkadots runtime to calculate its fees. Unfortunately this implementation comes to a different result for the same input making the off-chain fee calculation incorrect.

This fixes this issue by using the legacy Fixed128 implementation when kusama#1062 is detected and the current implementation otherwise.

@athei athei requested review from danforbes and emostov June 9, 2020 09:21
Copy link
Contributor

@emostov emostov left a comment

Choose a reason for hiding this comment

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

Ready to merge on my end

@joepetrowski joepetrowski merged commit f381c93 into master Jun 11, 2020
@joepetrowski joepetrowski deleted the at-fix-kusama-fee branch June 11, 2020 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants