Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdw committed Jan 27, 2025
1 parent 467a5ec commit d0943e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions rpcs/src/client/reconnecting_rpc_client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,8 @@ impl RpcClientT for RpcClient {
Error::DisconnectedWillReconnect(e) => {
SubxtRpcError::DisconnectedWillReconnect(e.to_string())
}
Error::Dropped => SubxtRpcError::ClientError(Box::new(e)),
Error::RpcError(e) => SubxtRpcError::ClientError(Box::new(e)),
Error::Dropped => SubxtRpcError::Client(Box::new(e)),
Error::RpcError(e) => SubxtRpcError::Client(Box::new(e)),
})
}
.boxed()
Expand Down
7 changes: 4 additions & 3 deletions testing/integration-tests/src/full_client/blocks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ use subxt::{
#[cfg(fullclient)]
use subxt_signer::sr25519::dev;

use subxt_metadata::Metadata;

#[cfg(fullclient)]
#[subxt_test]
async fn block_subscriptions_are_consistent_with_eachother() -> Result<(), subxt::Error> {
Expand Down Expand Up @@ -164,7 +162,10 @@ async fn runtime_api_call() -> Result<(), subxt::Error> {

// get metadata via state_call.
let (_, meta1) = rt
.call_raw::<(Compact<u32>, Metadata)>("Metadata_metadata", None)
.call_raw::<(Compact<u32>, frame_metadata::RuntimeMetadataPrefixed)>(
"Metadata_metadata",
None,
)
.await?;

// get metadata via `state_getMetadata`.
Expand Down

0 comments on commit d0943e6

Please sign in to comment.