diff --git a/crates/primitives/src/serde_helper/jsonu256.rs b/crates/primitives/src/serde_helper/jsonu256.rs index 58c7158061..3cf187f1f3 100644 --- a/crates/primitives/src/serde_helper/jsonu256.rs +++ b/crates/primitives/src/serde_helper/jsonu256.rs @@ -15,6 +15,12 @@ impl From for U256 { } } +impl From for JsonU256 { + fn from(value: U256) -> Self { + JsonU256(value) + } +} + impl Serialize for JsonU256 { fn serialize(&self, serializer: S) -> Result where