-
Notifications
You must be signed in to change notification settings - Fork 125
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
Add submit_and_watch_extrinsic_until_success
method
#398
Conversation
0d3b5b3
to
45e43b6
Compare
extract separate functions move trait to top fix ci fix no-std build serde_full fix clippy remove no good test remove comment
45e43b6
to
5cf49eb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, looks good to me!
Runtime::Hashing: HashTrait<Output = Runtime::Hash>, | ||
Runtime: FrameSystemConfig + GetRuntimeBlockType, | ||
Runtime::RuntimeBlock: BlockTrait + DeserializeOwned, | ||
Runtime::Hashing: HashTrait<Output = Runtime::Hash>, | ||
Runtime::Hash: FromHexString, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see us repeatedly having these excessive trait bounds. I would vote for adding them to the respective pallet's config, so we don't need to repeat them here every time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allows to watch an extrinsic and automatically checks if the extrinsic was successful or not (by retrieving and checking the associated events).
closes #288