Skip to content

Commit 91674c2

Browse files
committed
fix: answer comments
Signed-off-by: Gregory Edison <[email protected]>
1 parent 779f7d3 commit 91674c2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

crates/optimism/payload/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ optimism = [
6060
"reth-execution-types/optimism",
6161
"reth-optimism-consensus/optimism"
6262
]
63-
scroll = []
63+
scroll = []

crates/primitives/src/transaction/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ impl Transaction {
425425
/// Returns true if the transaction is a Scroll L1 messaging transaction.
426426
#[cfg(all(feature = "scroll", not(feature = "optimism")))]
427427
#[inline]
428-
pub fn is_l1_messaging(&self) -> bool {
428+
pub fn is_l1_message(&self) -> bool {
429429
matches!(self, Self::L1Message(_))
430430
}
431431

@@ -1741,7 +1741,7 @@ impl<'a> arbitrary::Arbitrary<'a> for TransactionSigned {
17411741
let signature = if transaction.is_deposit() { TxDeposit::signature() } else { signature };
17421742
#[cfg(all(feature = "scroll", not(feature = "optimism")))]
17431743
let signature =
1744-
if transaction.is_l1_messaging() { TxL1Message::signature() } else { signature };
1744+
if transaction.is_l1_message() { TxL1Message::signature() } else { signature };
17451745

17461746
Ok(Self::new_unhashed(transaction, signature))
17471747
}

crates/scroll/primitives/src/l1_transaction.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ use serde::{Deserialize, Serialize};
1111
#[cfg(any(test, feature = "reth-codec"))]
1212
use {reth_codecs::Compact, reth_codecs_derive::add_arbitrary_tests};
1313

14-
/// L1 message transaction type id.
15-
pub const L1_MESSAGE_TRANSACTION_TYPE: u8 = 0x7E;
14+
/// L1 message transaction type id, 0x7e in hex.
15+
pub const L1_MESSAGE_TRANSACTION_TYPE: u8 = 126;
1616

1717
/// A message transaction sent from the settlement layer to the L2 for execution.
1818
///

0 commit comments

Comments
 (0)