mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 14:37:57 +00:00
* add jsonrpsee glue code
* diener --substrate dp-jsonrpsee-integration-2
* cargo fmt
* update substrate
* fix build
* update substrate
* fix tests
* update substrate
* update substrate
* revert Cargo.toml
* revert changes in Cargo.toml
* jsonrpsee v0.11
* fix staking miner
* chore: update jsonrpsee v0.12
* update companion
* update companion
* fix changes in substrate
* revert requires_full_sync removal
* fix: read WS address from polkadot output
* fit nits
* fix more nits
* update lockfile for {"substrate"}
* cargo fmt
Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
use polkadot_test_service::*;
|
||||
use sp_keyring::Sr25519Keyring::{Alice, Bob, Charlie};
|
||||
|
||||
#[substrate_test_utils::test]
|
||||
#[substrate_test_utils::test(flavor = "multi_thread")]
|
||||
async fn call_function_actually_work() {
|
||||
let alice_config =
|
||||
node_config(|| {}, tokio::runtime::Handle::current(), Alice, Vec::new(), true);
|
||||
@@ -30,7 +30,7 @@ async fn call_function_actually_work() {
|
||||
});
|
||||
let output = alice.send_extrinsic(function, Bob).await.unwrap();
|
||||
|
||||
let res = output.result.expect("return value expected");
|
||||
let res = output.result;
|
||||
let json = serde_json::from_str::<serde_json::Value>(res.as_str()).expect("valid JSON");
|
||||
let object = json.as_object().expect("JSON is an object");
|
||||
assert!(object.contains_key("jsonrpc"), "key jsonrpc exists");
|
||||
|
||||
Reference in New Issue
Block a user