File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
//! [EIP-7702] constants.
2
2
//!
3
3
//! [EIP-7702]: https://eips.ethereum.org/EIPS/eip-7702
4
- use alloy_primitives:: { uint, U256 } ;
4
+ use alloy_primitives:: { hex , uint, U256 } ;
5
5
6
6
/// Identifier for EIP7702's set code transaction.
7
7
///
@@ -29,3 +29,10 @@ pub const PER_EMPTY_ACCOUNT_COST: u64 = 25000;
29
29
/// to EIP-2 should have an S value less than or equal to this.
30
30
pub const SECP256K1N_HALF : U256 =
31
31
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" ) ;
You can’t perform that action at this time.
0 commit comments