diff --git a/subxt/src/rpc/types.rs b/subxt/src/rpc/types.rs index 14b7fff42b..3d6e0f1ea6 100644 --- a/subxt/src/rpc/types.rs +++ b/subxt/src/rpc/types.rs @@ -509,7 +509,16 @@ pub enum FollowEvent { #[serde(rename_all = "camelCase")] pub struct ChainHeadResult { /// 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.