Skip to content

Commit

Permalink
fix(anvil): tag newly created legacy transactions on shadow fork as…
Browse files Browse the repository at this point in the history
… `Some(0)` (`0x0`) rather than `None` (#9195)

* mark legacy transaction type as 0x0 or Some(0) rather than None

* return as Some(0) for legacy tx

* revert Some(0) change per EIP-2718 spec
  • Loading branch information
zerosnacks authored Oct 25, 2024
1 parent 913899e commit 192a5a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/anvil/core/src/eth/transaction/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ pub fn to_alloy_transaction_with_hash_and_sender(
y_parity: None,
}),
access_list: None,
transaction_type: None,
transaction_type: Some(0),
max_fee_per_blob_gas: None,
blob_versioned_hashes: None,
authorization_list: None,
Expand Down

0 comments on commit 192a5a2

Please sign in to comment.