decode_value

Function decode_value 

Source
pub fn decode_value<Addr: Address>(
    bytes: &mut &[u8],
    address: &Addr,
    metadata: &Metadata,
) -> Result<Addr::Target, Error>
Expand description

Given some storage value that we’ve retrieved from a node, the address used to retrieve it, and metadata from the node, this function attempts to decode the bytes into the target value specified by the address.