8000 Refactor: Vote component by ap211unitech · Pull Request #11540 · polkadot-js/apps · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Refactor: Vote component #11540

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

Merged
merged 2 commits into from
May 12, 2025
Merged

Refactor: Vote component #11540

merged 2 commits into from
May 12, 2025

Conversation

ap211unitech
Copy link
Member

📝 Description

This PR addresses a bug where transactions with a Nay vote are incorrectly displayed as Aye in the Submission tab of the UI. The bug occurs during the decoding process after switching tabs, even though the underlying transaction data remains correct.
The issue is with the Vote type itself, not just the aye. Even if we change Conviction value and switch back to submission tab, it resets to None.

Encoded call - 0x1400c8000400e87648170000000000000000000000

🤔 Previous Behavior

image Screenshot 2025-05-09 at 12 40 17

✅ Current Behaviour

image Screenshot 2025-05-09 at 12 42 55

🖋️ Note

Here is one successful transaction with current flow (on Paseo) - https://paseo.subscan.io/extrinsic/0x543a94bbf3d5d9637b1baa7adfa6909df65466709ca2a6aee80347536ab55530

Copy link
Member
@TarikGul TarikGul left a comment

Choose a reason for hiding this comment

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

🚀

@ap211unitech ap211unitech merged commit d743f78 into master May 12, 2025
5 checks passed
@ap211unitech ap211unitech deleted the fix/vote-component branch May 12, 2025 16:41
@polkadot-js-bot
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@polkadot-js polkadot-js locked as resolved and limited conversation to collaborators May 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

extrinsics: wrong hex-encoded call interpretation from Decode tab
5 participants
0