Skip to content

Commit

Permalink
chore: add missing 7702 check (#1137)
Browse files Browse the repository at this point in the history
fix: add missing 7702 check
  • Loading branch information
mattsse authored Aug 8, 2024
1 parent d000fc6 commit fd159f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/network/src/ethereum/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ impl TransactionBuilder<Ethereum> for TransactionRequest {
let eip1559 = self.max_fee_per_gas.is_some() && self.max_priority_fee_per_gas.is_some();

let eip4844 = eip1559 && self.sidecar.is_some() && self.to.is_some();
common && (legacy || eip2930 || eip1559 || eip4844)

let eip7702 = eip1559 && self.authorization_list().is_some();
common && (legacy || eip2930 || eip1559 || eip4844 || eip7702)
}

#[doc(alias = "output_transaction_type")]
Expand Down

0 comments on commit fd159f6

Please sign in to comment.