mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-22 20:51:16 +00:00
change HashFor to HashingFor (#2828)
* change HashFor to HashingFor
* update lockfile for {"substrate", "polkadot"}
---------
Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -30,17 +30,17 @@ use frame_support::traits::{ExecuteBlock, ExtrinsicCall, Get, IsSubType};
|
||||
use sp_core::storage::{ChildInfo, StateVersion};
|
||||
use sp_externalities::{set_and_run_with_externalities, Externalities};
|
||||
use sp_io::KillStorageResult;
|
||||
use sp_runtime::traits::{Block as BlockT, Extrinsic, HashFor, Header as HeaderT};
|
||||
use sp_runtime::traits::{Block as BlockT, Extrinsic, HashingFor, Header as HeaderT};
|
||||
use sp_std::prelude::*;
|
||||
use sp_trie::MemoryDB;
|
||||
|
||||
type TrieBackend<B> = sp_state_machine::TrieBackend<
|
||||
MemoryDB<HashFor<B>>,
|
||||
HashFor<B>,
|
||||
trie_cache::CacheProvider<HashFor<B>>,
|
||||
MemoryDB<HashingFor<B>>,
|
||||
HashingFor<B>,
|
||||
trie_cache::CacheProvider<HashingFor<B>>,
|
||||
>;
|
||||
|
||||
type Ext<'a, B> = sp_state_machine::Ext<'a, HashFor<B>, TrieBackend<B>>;
|
||||
type Ext<'a, B> = sp_state_machine::Ext<'a, HashingFor<B>, TrieBackend<B>>;
|
||||
|
||||
fn with_externalities<F: FnOnce(&mut dyn Externalities) -> R, R>(f: F) -> R {
|
||||
sp_externalities::with_externalities(f).expect("Environmental externalities not set.")
|
||||
|
||||
Reference in New Issue
Block a user