Function subxt_core::storage::validate

source ยท
pub fn validate<Addr: Address>(
    address: &Addr,
    metadata: &Metadata
) -> Result<(), Error>
Expand description

When the provided address is statically generated via the #[subxt] macro, this validates that the shape of the storage value is the same as the shape expected by the static address.

When the provided address is dynamic (and thus does not come with any expectation of the shape of the constant value), this just returns Ok(())