diff --git a/libuptest/Cargo.toml b/libuptest/Cargo.toml index 82d9dd3..dffcc31 100644 --- a/libuptest/Cargo.toml +++ b/libuptest/Cargo.toml @@ -27,7 +27,7 @@ tokio = { version = "1.27", features = ["full"] } [features] -all = ["metadatadecode", "migrationsearch"]#, "subxthelper" +all = ["metadatadecode", "migrationsearch", "subxthelper"] metadatadecode = ["desub-current", "frame-metadata"] subxthelper = ["subxt", "subxt-signer", "subxt-macro", "subxt-metadata"] migrationsearch = ["reqwest", "glob", "regex", "tar", "flate2"] @@ -82,4 +82,4 @@ optional = true [dependencies.tar] version = "0.4.39" -optional = true \ No newline at end of file +optional = true diff --git a/libuptest/src/test_helper.rs b/libuptest/src/test_helper.rs index f816390..374216b 100644 --- a/libuptest/src/test_helper.rs +++ b/libuptest/src/test_helper.rs @@ -3,6 +3,9 @@ use rand::{Rng, SeedableRng}; // https://rust-random.github.io/book/guide-rngs.h #[cfg(feature = "subxthelper")] use subxt_signer::sr25519::Keypair; + + +#[cfg(feature = "subxthelper")] use subxt::utils::AccountId32;