subalfred-core 0.9.4

Subalfred's core libraries.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// subalfred
use super::*;
use subrpcer::system;

#[tokio::test]
async fn send_jsonrpc_should_work() {
	let response =
		send::<_, String>("https://rpc.polkadot.io", &system::chain(0), Duration::from_secs(10))
			.await;

	assert!(response.is_ok());

	assert_eq!(response.unwrap().result, "Polkadot");
}