Skip to content

Commit

Permalink
update comments (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbnerZheng authored Apr 12, 2024
1 parent ff0d155 commit cc1c9a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/rpc-types/src/eth/transaction/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub enum ConversionError {
/// Missing `to` field for EIP-4844 transaction.
#[error("missing `to` field for EIP-4844 transaction")]
MissingTo,
/// Missing `chainId` field for EIP-1559 transaction.
/// Missing `blobVersionedHashes` field for EIP-4844 transaction.
#[error("missing `blobVersionedHashes` field for EIP-4844 transaction")]
MissingBlobVersionedHashes,
}
5 changes: 3 additions & 2 deletions crates/rpc-types/src/eth/transaction/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,9 @@ pub struct Transaction {
pub access_list: Option<AccessList>,
/// EIP2718
///
/// Transaction type, Some(2) for EIP-1559 transaction,
/// Some(1) for AccessList transaction, None for Legacy
/// Transaction type,
/// Some(3) for EIP-4844 transaction, Some(2) for EIP-1559 transaction,
/// Some(1) for AccessList transaction, None or Some(0) for Legacy
#[serde(
default,
rename = "type",
Expand Down

0 comments on commit cc1c9a8

Please sign in to comment.