Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ap211unitech
Copy link
Member

πŸ“ Description

The Sudo page sometimes returns unexpected errors when submitting a call. However, the same action works correctly when performed from the Extrinsics page.

To resolve this issue, we are aligning the Sudo page's submission behavior with the Extrinsics page, which functions correctly. This involves analyzing the working implementation on the Extrinsics page and applying the necessary adjustments to the Sudo page.

This fix ensures a more consistent and error-free experience when submitting calls via the Sudo page.

πŸ€” Previous Behaviour

Screen.Recording.2025-03-26.at.12.44.34.mov

βœ… Current Behaviour

Screen.Recording.2025-03-26.at.12.47.04.mov

@ap211unitech ap211unitech self-assigned this Mar 26, 2025
@ap211unitech ap211unitech linked an issue Mar 26, 2025 that may be closed by this pull request
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.

Clean and simple fix. πŸš€

@ap211unitech ap211unitech merged commit dec8c2c into master Mar 27, 2025
5 checks passed
@ap211unitech ap211unitech deleted the fix/sudo-page branch March 27, 2025 12:33
<StyledSection className={className}>
<Extrinsic
defaultValue={apiDefaultTxSudo}
defaultValue={withWeight ? api.tx.sudo.sudoUncheckedWeight : api.tx.sudo.sudo}
Copy link
Contributor

Choose a reason for hiding this comment

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

This causes state loss when the weight override is toggled. Please fix.

@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 Mar 30, 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.

JS Error on Sudo page for polkadot.js

5 participants