diff --git a/src/eth/primitives/slot_index.rs b/src/eth/primitives/slot_index.rs index eb5f5ca84..559ac9636 100644 --- a/src/eth/primitives/slot_index.rs +++ b/src/eth/primitives/slot_index.rs @@ -33,7 +33,7 @@ impl SlotIndex { mapping_index_bytes[32..64].copy_from_slice(&slot_index_bytes); let hashed_bytes = keccak256(mapping_index_bytes); - Self::from(hashed_bytes.0) + Self::from(hashed_bytes) } } @@ -67,6 +67,12 @@ impl From for SlotIndex { } } +impl From> for SlotIndex { + fn from(value: FixedBytes<32>) -> Self { + Self::from(value.0) + } +} + // ----------------------------------------------------------------------------- // Tests // -----------------------------------------------------------------------------