Skip to content

Commit

Permalink
Set test-helpers for bp-runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
bkontur committed Jun 13, 2024
1 parent a128153 commit 79e3a79
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bridges/primitives/runtime/src/storage_proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use sp_core::{storage::TrackedStorageKey, RuntimeDebug};
use sp_runtime::{SaturatedConversion, StateVersion};
use sp_std::{default::Default, vec, vec::Vec};
use sp_trie::{
generate_trie_proof, verify_trie_proof, LayoutV0, LayoutV1, PrefixedMemoryDB, StorageProof,
generate_trie_proof, verify_trie_proof, LayoutV0, LayoutV1, StorageProof,
TrieDBBuilder, TrieHash,
};

Expand Down Expand Up @@ -109,7 +109,7 @@ impl UnverifiedStorageProof {
let entries: Vec<_> =
entries.iter().cloned().map(|(key, val)| (None, vec![(key, val)])).collect();
let backend =
sp_state_machine::TrieBackend::<PrefixedMemoryDB<H>, H>::from((entries, state_version));
sp_state_machine::TrieBackend::<sp_trie::PrefixedMemoryDB<H>, H>::from((entries, state_version));
let root = *backend.root();

Ok((root, UnverifiedStorageProof::try_from_db(backend.backend_storage(), root, keys)?))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ bp-parachains = { path = "../../../../../bridges/primitives/parachains", default
bp-polkadot-bulletin = { path = "../../../../../bridges/chains/chain-polkadot-bulletin", default-features = false }
bp-polkadot-core = { path = "../../../../../bridges/primitives/polkadot-core", default-features = false }
bp-relayers = { path = "../../../../../bridges/primitives/relayers", default-features = false }
bp-runtime = { path = "../../../../../bridges/primitives/runtime", default-features = false }
bp-runtime = { path = "../../../../../bridges/primitives/runtime", default-features = false, features = ["test-helpers"] }
bp-rococo = { path = "../../../../../bridges/chains/chain-rococo", default-features = false }
bp-westend = { path = "../../../../../bridges/chains/chain-westend", default-features = false }
pallet-bridge-grandpa = { path = "../../../../../bridges/modules/grandpa", default-features = false }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ bp-messages = { path = "../../../../../bridges/primitives/messages", default-fea
bp-parachains = { path = "../../../../../bridges/primitives/parachains", default-features = false }
bp-polkadot-core = { path = "../../../../../bridges/primitives/polkadot-core", default-features = false }
bp-relayers = { path = "../../../../../bridges/primitives/relayers", default-features = false }
bp-runtime = { path = "../../../../../bridges/primitives/runtime", default-features = false }
bp-runtime = { path = "../../../../../bridges/primitives/runtime", default-features = false, features = ["test-helpers"] }
bp-rococo = { path = "../../../../../bridges/chains/chain-rococo", default-features = false }
bp-westend = { path = "../../../../../bridges/chains/chain-westend", default-features = false }
pallet-bridge-grandpa = { path = "../../../../../bridges/modules/grandpa", default-features = false }
Expand Down

0 comments on commit 79e3a79

Please sign in to comment.