Skip to content
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 asset hub fee #996

Merged
merged 1 commit into from
Nov 8, 2023
Merged

Fix asset hub fee #996

merged 1 commit into from
Nov 8, 2023

Conversation

claravanstaden
Copy link
Contributor

@claravanstaden claravanstaden commented Nov 7, 2023

The decimal precision in the tests do not match the decimals in the rococo runtime config. Using the calculate_fee test to generate the user fee value for transfer token back to Ethereum, it generates a value that is too low.

Polkadot-sdk companion: Snowfork/polkadot-sdk#21

Copy link

codecov bot commented Nov 7, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ecc8ae9) 83.36% compared to head (1bd6e4d) 83.36%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #996   +/-   ##
=======================================
  Coverage   83.36%   83.36%           
=======================================
  Files          51       51           
  Lines        2044     2044           
  Branches       71       71           
=======================================
  Hits         1704     1704           
  Misses        325      325           
  Partials       15       15           
Flag Coverage Δ
rust 83.88% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@vgeddes vgeddes left a comment

Choose a reason for hiding this comment

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

Nice catch! I should have made 12 decimals the default, for compat with Rococo. Its only Polkadot mainnet that uses 10 decimals.

@claravanstaden claravanstaden merged commit 3d5658b into main Nov 8, 2023
6 checks passed
@claravanstaden claravanstaden deleted the clara/fix-assethub-fee branch November 8, 2023 07:14
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.

3 participants