Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Fix transaction_type comment #2783

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ethers-core/src/types/transaction/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ pub struct Transaction {
pub gateway_fee: Option<U256>,

// EIP2718
/// Transaction type, Some(2) for EIP-1559 transaction,
/// Some(1) for AccessList transaction, None for Legacy
/// Transaction type, Some(3) for Blob transactions, Some(2) for EIP-1559 transaction,
/// Some(1) for AccessList transaction, Some(0) or None for Legacy
#[serde(rename = "type", default, skip_serializing_if = "Option::is_none")]
pub transaction_type: Option<U64>,

Expand Down