Skip to content
Merged
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
5 changes: 3 additions & 2 deletions crates/primitives/src/transaction/morph_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,16 +109,17 @@ pub struct TxMorph {

/// Version of the Morph transaction format.
/// Used for future extensibility.
#[cfg_attr(feature = "serde", serde(with = "alloy_serde::quantity"))]
#[cfg_attr(feature = "serde", serde(default, with = "alloy_serde::quantity"))]
pub version: u8,

/// Token ID for alternative fee payment.
/// This corresponds to the token registered in the L2 Token Registry.
/// 0 means ETH payment, > 0 means ERC20 token payment.
#[cfg_attr(feature = "serde", serde(with = "alloy_serde::quantity"))]
#[cfg_attr(feature = "serde", serde(default, with = "alloy_serde::quantity"))]
pub fee_token_id: u16,

/// Maximum amount of tokens the sender is willing to pay as fee.
#[cfg_attr(feature = "serde", serde(default))]
pub fee_limit: U256,
Comment thread
coderabbitai[bot] marked this conversation as resolved.

/// Reference key for the transaction (optional, v1 only).
Expand Down