Add subxt feature in subxt-signer crate to default features (#1193)

* add subxt to subxt-signer default features

* distinguish between native and web in signer

* fix formatting and clippy

* rustfmt
This commit is contained in:
Tadeo Hepperle
2023-10-06 15:54:14 +02:00
committed by GitHub
parent 761fee0b07
commit f0b72b9104
8 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ scale-info = { workspace = true, features = ["bit-vec"] }
sp-core = { workspace = true }
syn = { workspace = true }
subxt = { workspace = true, features = ["unstable-metadata", "native", "jsonrpsee", "substrate-compat"] }
subxt-signer = { workspace = true, features = ["subxt"] }
subxt-signer = { workspace = true }
subxt-codegen = { workspace = true }
subxt-metadata = { workspace = true }
test-runtime = { workspace = true }
@@ -210,10 +210,7 @@ async fn chainhead_unstable_unpin() {
};
let sub_id = blocks.subscription_id().unwrap();
assert!(rpc
.chainhead_unstable_unpin(sub_id.clone(), hash)
.await
.is_ok());
assert!(rpc.chainhead_unstable_unpin(sub_id, hash).await.is_ok());
// The block was already unpinned.
assert!(rpc.chainhead_unstable_unpin(sub_id, hash).await.is_err());
}