mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 18:37:59 +00:00
Update parity-scale-codec to 2.0 (#7994)
* update cargo.toml * use 2.0 in mmmr
This commit is contained in:
committed by
GitHub
parent
bea4a6524d
commit
f48296e9ad
@@ -348,7 +348,7 @@ fn decl_outer_dispatch<'a>(
|
||||
.map(|module_declaration| {
|
||||
let module = &module_declaration.module;
|
||||
let name = &module_declaration.name;
|
||||
let index = module_declaration.index.to_string();
|
||||
let index = module_declaration.index;
|
||||
quote!(#[codec(index = #index)] #module::#name)
|
||||
});
|
||||
|
||||
@@ -381,14 +381,14 @@ fn decl_outer_origin<'a>(
|
||||
);
|
||||
return Err(syn::Error::new(module_declaration.name.span(), msg));
|
||||
}
|
||||
let index = module_declaration.index.to_string();
|
||||
let index = module_declaration.index;
|
||||
let tokens = quote!(#[codec(index = #index)] #module #instance #generics,);
|
||||
modules_tokens.extend(tokens);
|
||||
}
|
||||
}
|
||||
|
||||
let system_name = &system_module.module;
|
||||
let system_index = system_module.index.to_string();
|
||||
let system_index = system_module.index;
|
||||
|
||||
Ok(quote!(
|
||||
#scrate::impl_outer_origin! {
|
||||
@@ -422,7 +422,7 @@ fn decl_outer_event<'a>(
|
||||
return Err(syn::Error::new(module_declaration.name.span(), msg));
|
||||
}
|
||||
|
||||
let index = module_declaration.index.to_string();
|
||||
let index = module_declaration.index;
|
||||
let tokens = quote!(#[codec(index = #index)] #module #instance #generics,);
|
||||
modules_tokens.extend(tokens);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user