Skip to content

Commit

Permalink
docs: update txtype docs (alloy-rs#497)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored and ben186 committed Jul 27, 2024
1 parent 567d7ae commit 2ea4104
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions crates/rpc-types/src/eth/transaction/tx_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,7 @@ pub const EIP1559_TX_TYPE_ID: u8 = 2;
/// Identifier for an EIP4844 transaction.
pub const EIP4844_TX_TYPE_ID: u8 = 3;

/// Transaction Type
///
/// Currently being used as 2-bit type when encoding it to Compact on
/// crate::TransactionSignedNoHash (see Reth's Compact encoding). Adding more transaction types will
/// break the codec and database format on Reth.
///
/// Other required changes when adding a new type can be seen on [PR#3953](https://github.com/paradigmxyz/reth/pull/3953/files).
/// Transaction Types supported by ethereum.
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Default, Serialize, Deserialize)]
pub enum TxType {
/// Legacy transaction pre EIP-2929
Expand Down

0 comments on commit 2ea4104

Please sign in to comment.