mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-14 00:25:51 +00:00
optimize double map first key hash (#2451)
* fix double map encoding it is now encoded as specified in the doc
This commit is contained in:
@@ -234,16 +234,6 @@ impl HasherKind {
|
||||
}
|
||||
}
|
||||
|
||||
fn into_hashable_fn(&self) -> TokenStream2 {
|
||||
match self {
|
||||
HasherKind::Blake2_256 => quote!( blake2_256 ),
|
||||
HasherKind::Blake2_128 => quote!( blake2_128 ),
|
||||
HasherKind::Twox256 => quote!( twox_256 ),
|
||||
HasherKind::Twox128 => quote!( twox_128 ),
|
||||
HasherKind::Twox64Concat => quote!( twox_64_concat),
|
||||
}
|
||||
}
|
||||
|
||||
fn into_metadata(&self) -> TokenStream2 {
|
||||
match self {
|
||||
HasherKind::Blake2_256 => quote!( StorageHasher::Blake2_256 ),
|
||||
|
||||
Reference in New Issue
Block a user