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?;