Skip to content

Commit

Permalink
fix some nightly errors (#2225)
Browse files Browse the repository at this point in the history
  • Loading branch information
svyatonik authored and bkontur committed Jun 4, 2024
1 parent 058099f commit d3ccc4f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions bridges/modules/messages/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ std = [
"sp-trie/std"
]
runtime-benchmarks = [
"bp-runtime/test-helpers",
"frame-benchmarking/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
Expand Down
7 changes: 5 additions & 2 deletions bridges/primitives/runtime/src/storage_proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use frame_support::PalletError;
use sp_core::{storage::TrackedStorageKey, RuntimeDebug};
use sp_runtime::{SaturatedConversion, StateVersion};
use sp_std::{collections::btree_set::BTreeSet, default::Default, vec, vec::Vec};
use sp_std::{default::Default, vec, vec::Vec};
use sp_trie::{
generate_trie_proof, verify_trie_proof, LayoutV0, LayoutV1, PrefixedMemoryDB, StorageProof,
TrieDBBuilder, TrieHash,
Expand All @@ -28,7 +28,7 @@ use sp_trie::{
use codec::{Decode, Encode};
use hash_db::Hasher;
use scale_info::TypeInfo;
use trie_db::{DBValue, Recorder, Trie};
use trie_db::{DBValue, Trie};
#[cfg(feature = "test-helpers")]
use trie_db::{TrieConfiguration, TrieDBMut};

Expand Down Expand Up @@ -127,6 +127,9 @@ impl UnverifiedStorageProof {
where
DB: hash_db::HashDBRef<H, DBValue>,
{
use sp_std::collections::btree_set::BTreeSet;
use trie_db::Recorder;

let mut recorder = Recorder::<LayoutV1<H>>::new();
let trie = TrieDBBuilder::<LayoutV1<H>>::new(db, &root)
.with_recorder(&mut recorder)
Expand Down

0 comments on commit d3ccc4f

Please sign in to comment.