paritytech / paritytech/subxt

add example to get result of sudo extrinsic

Open
#1,854 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

solution-engineer
Dominant language
Rust
Stars
489
Forks
293
Avg merge
18h 35m
Merged PRs (30d)
3

Description

runtime returns success for the sudo call even if the wrapped extrinsic fails. would be nice to have an example of how to get the result of the wrapped extrinsic.

for an example that reads the sudoid event to get the wrapped result in polkadotjs see:

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the linked Polkadot.js cookbook example and locating the existing Subxt documentation or examples for sudo extrinsics. Add an example showing how to read the sudo event and obtain the wrapped extrinsic result, including the failure case; done means the example clearly distinguishes the sudo call's success from the wrapped call's result.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.