diff --git a/primitives/src/evm.rs b/primitives/src/evm.rs index d71c356221..98a94730b5 100644 --- a/primitives/src/evm.rs +++ b/primitives/src/evm.rs @@ -394,7 +394,10 @@ pub mod tracing { pub call_type: CallType, pub from: H160, pub to: H160, - #[serde(serialize_with = "vec_to_hex", deserialize_with = "hex_to_vec")] + #[cfg_attr( + feature = "std", + serde(serialize_with = "vec_to_hex", deserialize_with = "hex_to_vec") + )] pub input: Vec, pub value: U256, // gas limit