Skip to content

Commit

Permalink
fix: set system tx correctly (paradigmxyz#11601)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored and ebo committed Oct 14, 2024
1 parent fa7fc4f commit fceca64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/optimism/rpc/src/eth/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ impl TransactionCompat for OpTxBuilder {
source_hash: signed_tx.source_hash(),
mint: signed_tx.mint(),
// 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().then_some(signed_tx.is_system_transaction()),
is_system_tx: (signed_tx.is_deposit() && signed_tx.is_system_transaction())
.then_some(true),
deposit_receipt_version: None, // todo: how to fill this field?
}
}
Expand Down

0 comments on commit fceca64

Please sign in to comment.