Skip to content

improve examples to check for extrinsic-success and report errors and events triggered by the extrinsic #591

@brenzi

Description

@brenzi

println!("[+] Extrinsic got included. Hash: {:?}\n", block_hash);

currently, the example just returns the tx hash. What I'd like to see is:

  • did the extrinsic not only get included, but did it yield a extrinsicSuccess event?
  • if not, report error
  • if events were triggered by this extrinsic, return events

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions