pub trait StorageKey {
// Required method
fn to_slot(&self, root: B256) -> U256;
}Expand description
Trait that allows types to be the key of a StorageMap.
Note: the assignment of slots must be injective.
pub trait StorageKey {
// Required method
fn to_slot(&self, root: B256) -> U256;
}Trait that allows types to be the key of a StorageMap.
Note: the assignment of slots must be injective.