Skip to content

Commit 6b73a3c

Browse files
authored
test(op-tx): Cover DepositTransactionParts constructor in test (bluealloy#2358)
1 parent 901c0f2 commit 6b73a3c

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

crates/optimism/src/transaction/deposit.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,11 @@ mod tests {
3232
let deposit_tx_parts: DepositTransactionParts = serde_json::from_str(response).unwrap();
3333
assert_eq!(
3434
deposit_tx_parts,
35-
DepositTransactionParts {
36-
source_hash: b256!(
37-
"0xe927a1448525fb5d32cb50ee1408461a945ba6c39bd5cf5621407d500ecc8de9"
38-
),
39-
mint: Some(0x34),
40-
is_system_transaction: false,
41-
}
35+
DepositTransactionParts::new(
36+
b256!("0xe927a1448525fb5d32cb50ee1408461a945ba6c39bd5cf5621407d500ecc8de9"),
37+
Some(0x34),
38+
false,
39+
)
4240
);
4341
}
4442
}

0 commit comments

Comments
 (0)