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 frozen balance #84

Merged
merged 3 commits into from
Dec 4, 2024
Merged

Fix frozen balance #84

merged 3 commits into from
Dec 4, 2024

Conversation

bgibers
Copy link
Contributor

@bgibers bgibers commented Nov 25, 2024

See issue #83
polkadot.js frozen balance is data?.frozen not data?.miscFrozen and data?.feeFrozen
See the following return type

To verify this is working,

In TransferDialog.tsx replace this line:
const { tokenSymbol, tokenDecimals, reducibleBalance } = useBalance(activeAccount?.address, true)

with:

const { tokenSymbol, tokenDecimals, reducibleBalance } = useBalance(
    '5FKbRdY3LSH3u7i5HQtZJFUDYK48gVDTk9UHfLVReB2V7iCe',
    true,
  )

and see the difference

I pushed out two commits. The second one prevents any breaking changes in case data?.miscFrozen and data?.feeFrozen exist on other chains. The first replaces them all together

- polkadot.js frozen balance is data?.frozen not data?.miscFrozen and data?.feeFrozen
Copy link

changeset-bot bot commented Nov 25, 2024

🦋 Changeset detected

Latest commit: dd1c172

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Member

@wottpal wottpal left a comment

Choose a reason for hiding this comment

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

lgtm

@wottpal wottpal merged commit 8e0e45f into scio-labs:main Dec 4, 2024
@bgibers bgibers deleted the bugFix/frozenBalance branch December 4, 2024 18:12
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.

2 participants