From 8d99c28da17232a26afe7af0251fde2cd00a89fe Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Tue, 1 Oct 2024 23:17:28 +0200 Subject: [PATCH] feat: add helper from impl (#1407) --- crates/eips/src/eip1898.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/eips/src/eip1898.rs b/crates/eips/src/eip1898.rs index 3780560f519..df61d1edbee 100644 --- a/crates/eips/src/eip1898.rs +++ b/crates/eips/src/eip1898.rs @@ -689,6 +689,12 @@ impl From for HashOrNumber { } } +impl From<&B256> for HashOrNumber { + fn from(value: &B256) -> Self { + Self::Hash(*value) + } +} + impl From for HashOrNumber { fn from(value: u64) -> Self { Self::Number(value)