Skip to content

Commit 24f22c6

Browse files
authored
Merge branch 'main' into nadtech/migrate-eip4844
2 parents 73e4084 + 9741bff commit 24f22c6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

crates/eip7702/src/constants.rs

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! [EIP-7702] constants.
22
//!
33
//! [EIP-7702]: https://eips.ethereum.org/EIPS/eip-7702
4-
use alloy_primitives::{uint, U256};
4+
use alloy_primitives::{hex, uint, U256};
55

66
/// Identifier for EIP7702's set code transaction.
77
///
@@ -29,3 +29,10 @@ pub const PER_EMPTY_ACCOUNT_COST: u64 = 25000;
2929
/// to EIP-2 should have an S value less than or equal to this.
3030
pub const SECP256K1N_HALF: U256 =
3131
uint!(57896044618658097711785492504343953926418782139537452191302581570759080747168_U256);
32+
33+
/// The EIP-7702 delegation designator.
34+
pub const EIP7702_DELEGATION_DESIGNATOR: [u8; 3] = hex!("0xef0100");
35+
36+
/// The EIP-7702 delegation designator for a cleared delegation.
37+
pub const EIP7702_CLEARED_DELEGATION: [u8; 23] =
38+
hex!("0xef01000000000000000000000000000000000000000000");

0 commit comments

Comments
 (0)