Skip to content

Commit 4f6c0f6

Browse files
added MONAD_SYSTEM_ADDRESS (#12585)
* added MONAD_SYSTEM_ADDRESS * modified comments * chore: rsutfmt --------- Co-authored-by: Matthias Seitz <[email protected]>
1 parent 1c57854 commit 4f6c0f6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

crates/common/src/constants.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ pub const ARBITRUM_SENDER: Address = address!("0x0000000000000000000000000000000
3939
/// See also <https://github.com/ethereum-optimism/optimism/blob/65ec61dde94ffa93342728d324fecf474d228e1f/specs/deposits.md#l1-attributes-deposited-transaction>
4040
pub const OPTIMISM_SYSTEM_ADDRESS: Address = address!("0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001");
4141

42+
/// The system address, the sender of the first transaction in every block:
43+
pub const MONAD_SYSTEM_ADDRESS: Address = address!("0x6f49a8F621353f12378d0046E7d7e4b9B249DC9e");
44+
4245
/// Transaction identifier of System transaction types
4346
pub const SYSTEM_TRANSACTION_TYPE: u8 = 126;
4447

@@ -52,9 +55,10 @@ pub const TYPE_BINDING_PREFIX: &str = "string constant schema_";
5255
///
5356
/// Transactions from these senders usually don't have a any fee information OR set absurdly high fees that exceed the gas limit (See: <https://github.com/foundry-rs/foundry/pull/10608>)
5457
///
55-
/// See: [ARBITRUM_SENDER], [OPTIMISM_SYSTEM_ADDRESS] and [Address::ZERO]
58+
/// See: [ARBITRUM_SENDER], [OPTIMISM_SYSTEM_ADDRESS], [MONAD_SYSTEM_ADDRESS] and [Address::ZERO]
5659
pub fn is_known_system_sender(sender: Address) -> bool {
57-
[ARBITRUM_SENDER, OPTIMISM_SYSTEM_ADDRESS, Address::ZERO].contains(&sender)
60+
[ARBITRUM_SENDER, OPTIMISM_SYSTEM_ADDRESS, MONAD_SYSTEM_ADDRESS, Address::ZERO]
61+
.contains(&sender)
5862
}
5963

6064
pub fn is_impersonated_tx(tx: &AnyTxEnvelope) -> bool {

0 commit comments

Comments
 (0)