From 4614ff7bbb176768f3dacb6c7983c49411c12a46 Mon Sep 17 00:00:00 2001 From: James Wilson Date: Fri, 23 Feb 2024 13:27:57 +0000 Subject: [PATCH] Swap type aliases around to be semantically correct (#1441) --- subxt/src/backend/legacy/rpc_methods.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subxt/src/backend/legacy/rpc_methods.rs b/subxt/src/backend/legacy/rpc_methods.rs index 4dde85ee98..b227694b55 100644 --- a/subxt/src/backend/legacy/rpc_methods.rs +++ b/subxt/src/backend/legacy/rpc_methods.rs @@ -36,7 +36,7 @@ impl LegacyRpcMethods { &self, key: &[u8], hash: Option, - ) -> Result, Error> { + ) -> Result, Error> { let params = rpc_params![to_hex(key), hash]; let data: Option = self.client.request("state_getStorage", params).await?; Ok(data.map(|b| b.0)) @@ -51,7 +51,7 @@ impl LegacyRpcMethods { count: u32, start_key: Option<&[u8]>, at: Option, - ) -> Result, Error> { + ) -> Result, Error> { let start_key = start_key.map(to_hex); let params = rpc_params![to_hex(key), count, start_key, at]; let data: Vec = self.client.request("state_getKeysPaged", params).await?;