Compile Platform impl

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
Alexandru Vasile
2023-06-05 15:52:05 +03:00
parent b70beaf7a4
commit 853a71ec24
9 changed files with 1015 additions and 494 deletions
+811 -23
View File
File diff suppressed because it is too large Load Diff
+3
View File
@@ -13,3 +13,6 @@ tracing-wasm = "0.2.1"
console_error_panic_hook = "0.1.7"
serde_json = "1"
subxt = { path = "../../subxt", default-features = false, features = ["jsonrpsee-web", "unstable-light-client"] }
[profile.release]
debug = true
+7 -4
View File
@@ -21,9 +21,12 @@ async fn wasm_ws_transport_works() {
#[wasm_bindgen_test]
async fn light_client_transport_works() {
let light_client = LightClient::new(include_str!("../../artifacts/dev_spec.json")).unwrap();
let client = subxt::client::OnlineClient::<PolkadotConfig>::from_rpc_client(Arc::new(light_client)).await.unwrap();
let chain = client.rpc().system_chain().await.unwrap();
assert_eq!(&chain, "Development");
println!("Creating lightclient");
let light_client = LightClient::new(include_str!("../../../artifacts/dev_spec.json")).unwrap();
// let client = subxt::client::OnlineClient::<PolkadotConfig>::from_rpc_client(Arc::new(light_client)).await.unwrap();
// let chain = client.rpc().system_chain().await.unwrap();
// assert_eq!(&chain, "Development");
}