DispatchError::Module is now a tuple variant in latest Substrate (#439)

* ModuleError is now a tuple variant

* more robust pointer to DispatchError

* backward compat

* clippy

* cargo fmt

* abort_call_site and simplify path comparison

* clippy
This commit is contained in:
James Wilson
2022-02-15 16:15:13 +00:00
committed by GitHub
parent 117e2edad4
commit cb9177aaa9
2 changed files with 68 additions and 11 deletions
+1 -1
View File
@@ -284,7 +284,7 @@ impl RuntimeGenerator {
#types_mod
/// The default error type returned when there is a runtime issue.
pub type DispatchError = self::runtime_types::sp_runtime::DispatchError;
pub type DispatchError = #types_mod_ident::sp_runtime::DispatchError;
// Statically generate error information so that we don't need runtime metadata for it.
#error_type