diff --git a/crates/evm/src/query.rs b/crates/evm/src/query.rs index a08253cd7..0e75f84dd 100644 --- a/crates/evm/src/query.rs +++ b/crates/evm/src/query.rs @@ -231,7 +231,7 @@ impl Evm { other: OtherFields::new(BTreeMap::::from([ ( "l1FeeRate".to_string(), - serde_json::json!(sealed_block.l1_fee_rate), + format!("{:#x}", sealed_block.l1_fee_rate).into(), ), ( "l1Hash".to_string(), diff --git a/crates/evm/src/tests/queries/basic_queries.rs b/crates/evm/src/tests/queries/basic_queries.rs index 51428fb72..26504b7e1 100644 --- a/crates/evm/src/tests/queries/basic_queries.rs +++ b/crates/evm/src/tests/queries/basic_queries.rs @@ -506,10 +506,9 @@ fn check_against_third_block(block: &AnyNetworkBlock) { other: OtherFields::new(BTreeMap::new()), }; - rich_block.other.insert( - "l1FeeRate".to_string(), - serde_json::Value::Number(serde_json::Number::from(1)), - ); + rich_block + .other + .insert("l1FeeRate".to_string(), "0x1".into()); rich_block.other.insert( "l1Hash".to_string(),