Skip to content

Commit

Permalink
fix: only set isSystemtx if true (#10496)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Aug 24, 2024
1 parent b50a9ba commit bcb0a23
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/rpc/rpc-types-compat/src/transaction/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ fn fill(tx: TransactionSignedEcRecovered, tx_info: TransactionInfo) -> Transacti
other: reth_rpc_types::optimism::OptimismTransactionFields {
source_hash: signed_tx.source_hash(),
mint: signed_tx.mint(),
is_system_tx: signed_tx.is_deposit().then_some(signed_tx.is_system_transaction()),
// only include is_system_tx if true: <https://github.com/ethereum-optimism/op-geth/blob/641e996a2dcf1f81bac9416cb6124f86a69f1de7/internal/ethapi/api.go#L1518-L1518>
is_system_tx: (signed_tx.is_deposit() && signed_tx.is_system_transaction())
.then_some(true),
}
.into(),
#[cfg(not(feature = "optimism"))]
Expand Down

0 comments on commit bcb0a23

Please sign in to comment.