mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 02:48:03 +00:00
Update scale-info and parity-scale-codec requirements (#462)
* Update scale-info and parity-scale-codec requirements * Update CHANGELOG * Update frame-metadata * Update bitvec * Fix test * Update bitvec event decoding * More bitvec updates * Update substrate primitives dependencies * Fix up bitvec errors and decode error * Fix up bitvec errors * Update polkadot codegen
This commit is contained in:
@@ -686,8 +686,8 @@ fn generate_bitvec() {
|
||||
#[allow(unused)]
|
||||
#[derive(TypeInfo)]
|
||||
struct S {
|
||||
lsb: BitVec<Lsb0, u8>,
|
||||
msb: BitVec<Msb0, u16>,
|
||||
lsb: BitVec<u8, Lsb0>,
|
||||
msb: BitVec<u16, Msb0>,
|
||||
}
|
||||
|
||||
let mut registry = Registry::new();
|
||||
@@ -710,8 +710,8 @@ fn generate_bitvec() {
|
||||
use super::root;
|
||||
#[derive(::subxt::codec::Encode, ::subxt::codec::Decode, Debug)]
|
||||
pub struct S {
|
||||
pub lsb: ::subxt::bitvec::vec::BitVec<root::bitvec::order::Lsb0, ::core::primitive::u8>,
|
||||
pub msb: ::subxt::bitvec::vec::BitVec<root::bitvec::order::Msb0, ::core::primitive::u16>,
|
||||
pub lsb: ::subxt::bitvec::vec::BitVec<::core::primitive::u8, root::bitvec::order::Lsb0>,
|
||||
pub msb: ::subxt::bitvec::vec::BitVec<::core::primitive::u16, root::bitvec::order::Msb0>,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -179,7 +179,7 @@ impl TypePathType {
|
||||
let bit_order_type = &self.params[0];
|
||||
let bit_store_type = &self.params[1];
|
||||
|
||||
let type_path = parse_quote! { ::subxt::bitvec::vec::BitVec<#bit_order_type, #bit_store_type> };
|
||||
let type_path = parse_quote! { ::subxt::bitvec::vec::BitVec<#bit_store_type, #bit_order_type> };
|
||||
|
||||
syn::Type::Path(type_path)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user