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

Commit

Permalink
Re-enable the other field for optimism feature
Browse files Browse the repository at this point in the history
  • Loading branch information
mdehoog committed Oct 3, 2023
1 parent 70e5f02 commit 6493841
Showing 1 changed file with 3 additions and 1 deletion.
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,
}
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

0 comments on commit 6493841

Please sign in to comment.