-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement state handling for Retracted status (#807)
* - Move Retractec from UnexpectedTxStatus to XtStatus - Provide is_final method for TransactionStatus - Return from watch method as soon as a final state is reached - Provide separate method to populate events for an ExtrinsicReport * Fix unittest * Remove unreachable handling of states with is_final() == True * Improve testing and error handling * Improve tests * Change API for `populate_events` function * Fix failing test * Split populate_events into two separate methods * Add documentation * Rename function * Expand Error type for event related problems * Improve documentation Co-authored-by: Bigna Härdi <Bigna.Haerdi@scs.ch> --------- Co-authored-by: Bigna Härdi <Bigna.Haerdi@scs.ch>
- Loading branch information
Showing
4 changed files
with
122 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters