pub fn validate<Addr>(address: &Addr, metadata: &Metadata) -> Result<(), Error>where
Addr: Address,
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(())