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

Use balance capped to u64 for transaction payment RPC. #4290

Merged
merged 2 commits into from
Dec 5, 2019

Conversation

tomusdrw
Copy link
Contributor

@tomusdrw tomusdrw commented Dec 4, 2019

payment_fee is not likely to ever exceed u64 anyway, and by not using Balance directly we can avoid running into issues with u128 balances.

Fixes: paritytech/polkadot#654

@tomusdrw tomusdrw added A0-please_review Pull request needs code review. M6-rpcapi labels Dec 4, 2019
@tomusdrw tomusdrw requested review from jacogr and bkchr December 4, 2019 13:36
Copy link
Contributor

@jacogr jacogr left a comment

Choose a reason for hiding this comment

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

I don't have an issue with this approach, as long as it works, can adjust.

@gavofyork
Copy link
Member

Ci failing.

@gavofyork gavofyork added A7-looksgoodtestsfail and removed A0-please_review Pull request needs code review. labels Dec 4, 2019
@tomusdrw tomusdrw added A0-please_review Pull request needs code review. and removed A7-looksgoodtestsfail labels Dec 5, 2019
@gavofyork gavofyork merged commit 41d095f into master Dec 5, 2019
@gavofyork gavofyork deleted the td-payment-quick-fix branch December 5, 2019 12:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

api.rpc.payment.queryInfo
4 participants