mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-29 13:48:00 +00:00
change HashFor to HashingFor (#14483)
* change HashFor to HashingFor * fmt * ".git/.scripts/commands/fmt/fmt.sh" --------- Co-authored-by: command-bot <>
This commit is contained in:
@@ -78,7 +78,7 @@ use sp_consensus::{
|
||||
};
|
||||
use sp_runtime::{
|
||||
traits::{
|
||||
Block as BlockT, CheckedSub, Hash, HashFor, Header as HeaderT, NumberFor, One,
|
||||
Block as BlockT, CheckedSub, Hash, HashingFor, Header as HeaderT, NumberFor, One,
|
||||
SaturatedConversion, Zero,
|
||||
},
|
||||
EncodedJustification, Justifications,
|
||||
@@ -3137,7 +3137,7 @@ fn validate_blocks<Block: BlockT>(
|
||||
}
|
||||
if let (Some(header), Some(body)) = (&b.header, &b.body) {
|
||||
let expected = *header.extrinsics_root();
|
||||
let got = HashFor::<Block>::ordered_trie_root(
|
||||
let got = HashingFor::<Block>::ordered_trie_root(
|
||||
body.iter().map(Encode::encode).collect(),
|
||||
sp_runtime::StateVersion::V0,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user