Skip to content
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

Improve Dispatch Errors #878

Merged
merged 12 commits into from
Mar 23, 2023
Prev Previous commit
Next Next commit
Add a comment about where the error was copied from
jsdw committed Mar 22, 2023
commit 2ad2e74a00f311dd4b3e6c763d6b143225ea5eb5
4 changes: 3 additions & 1 deletion subxt/src/error/dispatch_error.rs
Original file line number Diff line number Diff line change
@@ -195,7 +195,9 @@ impl DispatchError {
}
};

// The aim is to decode our bytes into roughly this shape:
// The aim is to decode our bytes into roughly this shape. This is copied from
// `sp_runtime::DispatchError`; we need the variant names and any inner variant
// names/shapes to line up in order for decoding to be successful.
#[derive(scale_decode::DecodeAsType)]
enum DecodedDispatchError {
Other,