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 modified keys from pallet balances #47

Merged
merged 2 commits into from
Apr 23, 2024
Merged

Conversation

gianfra-t
Copy link
Contributor

@gianfra-t gianfra-t commented Apr 23, 2024

Closes bug @ [tasks/301]

Upon upgrading to polkadot 0.9.42, pallet-balances experienced a modificaiton by which only one field for frozen balances is returned when querying the state.
This fix reflects those changes.

@gianfra-t gianfra-t requested a review from a team April 23, 2024 14:07
const miscFrozen = BigInt(balances.miscFrozen.replace(/,/g, ""));
const feeFrozen = BigInt(balances.feeFrozen.replace(/,/g, ""));
const frozen = miscFrozen > feeFrozen ? miscFrozen : feeFrozen;
console.log(balances)
Copy link
Member

Choose a reason for hiding this comment

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

Can we remove this log statement?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry forgot to push the last change.

Copy link
Member

@ebma ebma left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍

@ebma ebma merged commit 259f0bb into main Apr 23, 2024
1 check passed
@ebma ebma deleted the fix-balances-update-changes branch April 23, 2024 15:26
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.

None yet

2 participants