types: Handle storage replies from chainHead_storage

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
Alexandru Vasile
2023-05-25 13:59:12 +03:00
parent 01549d06c4
commit 922e19a3f3
+9
View File
@@ -509,7 +509,16 @@ pub enum FollowEvent<Hash> {
#[serde(rename_all = "camelCase")]
pub struct ChainHeadResult<T> {
/// Result of the method.
#[cfg(not(feature = "experimental-light-client"))]
pub result: T,
/// Result of the method.
///
/// # Note
///
/// `chainHead_body` returns a vector of values, while
/// `chainHead_storage` returns just one plain element.
#[cfg(feature = "experimental-light-client")]
pub value: T,
}
/// The event generated by the body / call / storage methods.