Skip to content
This repository was archived by the owner on Oct 19, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
1 change: 1 addition & 0 deletions ethers-core/src/types/transaction/optimism.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ mod test {
max_priority_fee_per_gas: None,
max_fee_per_gas: None,
chain_id: None,
other: crate::types::OtherFields::default(),
};

let rlp = deposited_tx.rlp();
Expand Down
4 changes: 3 additions & 1 deletion ethers-core/src/types/transaction/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ pub struct Transaction {
pub chain_id: Option<U256>,

/// Captures unknown fields such as additional fields used by L2s
#[cfg(not(any(feature = "celo", feature = "optimism")))]
#[cfg(not(any(feature = "celo")))]
#[serde(flatten)]
pub other: crate::types::OtherFields,
Comment on lines +135 to 137
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, I think this is reasonable to always enable this because this is also useful for other chains that include additional fields

}
Expand Down Expand Up @@ -649,6 +649,8 @@ mod tests {
max_priority_fee_per_gas: None,
max_fee_per_gas: None,
chain_id: None,
#[cfg(not(feature = "celo"))]
other: crate::types::OtherFields::default(),
};

let encoded_rlp_bytes = deposited_tx.rlp();
Expand Down