diff --git a/Cargo.lock b/Cargo.lock index 6151ed33c5b6..e51f92d5825c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -14569,10 +14569,9 @@ name = "pallet-paged-list-fuzzer" version = "0.1.0" dependencies = [ "arbitrary", - "frame-support 28.0.0", "honggfuzz", "pallet-paged-list 0.6.0", - "sp-io 30.0.0", + "polkadot-sdk-frame 0.1.0", ] [[package]] diff --git a/substrate/frame/paged-list/fuzzer/Cargo.toml b/substrate/frame/paged-list/fuzzer/Cargo.toml index 7e6162df09ba..e00f55daf8a1 100644 --- a/substrate/frame/paged-list/fuzzer/Cargo.toml +++ b/substrate/frame/paged-list/fuzzer/Cargo.toml @@ -18,8 +18,13 @@ path = "src/paged_list.rs" [dependencies] arbitrary = { workspace = true } +frame = { workspace = true, features = ["experimental", "runtime"] } honggfuzz = { workspace = true } - -frame-support = { features = ["std"], workspace = true } pallet-paged-list = { features = ["std"], workspace = true } -sp-io = { features = ["std"], workspace = true } + +[features] +default = ["std"] +std = [ + "frame/std", + "pallet-paged-list/std", +] diff --git a/substrate/frame/paged-list/fuzzer/src/paged_list.rs b/substrate/frame/paged-list/fuzzer/src/paged_list.rs index 43b797eee6bf..f0f914de1422 100644 --- a/substrate/frame/paged-list/fuzzer/src/paged_list.rs +++ b/substrate/frame/paged-list/fuzzer/src/paged_list.rs @@ -30,9 +30,12 @@ use arbitrary::Arbitrary; use honggfuzz::fuzz; -use frame_support::{storage::StorageList, StorageNoopGuard}; +use frame::{ + prelude::*, runtime::prelude::storage::storage_noop_guard::StorageNoopGuard, + testing_prelude::TestExternalities, +}; + use pallet_paged_list::mock::{PagedList as List, *}; -use sp_io::TestExternalities; type Meta = MetaOf; fn main() {