Skip to content

Commit

Permalink
Make Block::l1FeeRate hex (#1631)
Browse files Browse the repository at this point in the history
  • Loading branch information
kpp authored Dec 20, 2024
1 parent 8c812ba commit aaa4be7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/evm/src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ impl<C: sov_modules_api::Context> Evm<C> {
other: OtherFields::new(BTreeMap::<String, _>::from([
(
"l1FeeRate".to_string(),
serde_json::json!(sealed_block.l1_fee_rate),
format!("{:#x}", sealed_block.l1_fee_rate).into(),
),
(
"l1Hash".to_string(),
Expand Down
7 changes: 3 additions & 4 deletions crates/evm/src/tests/queries/basic_queries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit aaa4be7

Please sign in to comment.