Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
0xZerohero committed Feb 13, 2024
1 parent 01b2c8f commit 2c209dd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crates/rpc-types/src/eth/transaction/optimism.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@ mod tests {

use super::*;

#[test]
fn serialize_empty_optimism_transaction_receipt_fields_struct() {
let op_fields = OptimismTransactionReceiptFields::default();

let json = serde_json::to_value(op_fields).unwrap();
assert_eq!(json, json!({}));
}

#[test]
fn serialize_l1_fee_scalar() {
let op_fields = OptimismTransactionReceiptFields {
Expand Down

0 comments on commit 2c209dd

Please sign in to comment.