Skip to content

Commit dfb52f3

Browse files
committed
eip 7702 support (authorization list)
1 parent 2db9a95 commit dfb52f3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

runtime/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ use sp_version::NativeVersion;
6969
use sp_version::RuntimeVersion;
7070
use subtensor_precompiles::Precompiles;
7171
use subtensor_runtime_common::{AlphaCurrency, time::*, *};
72+
use ethereum::AuthorizationList;
7273

7374
// A few exports that help ease life for downstream crates.
7475
pub use frame_support::{
@@ -2004,6 +2005,7 @@ impl_runtime_apis! {
20042005
nonce: Option<U256>,
20052006
estimate: bool,
20062007
access_list: Option<Vec<(H160, Vec<H256>)>>,
2008+
authorization_list: Option<AuthorizationList>,
20072009
) -> Result<pallet_evm::CallInfo, sp_runtime::DispatchError> {
20082010
use pallet_evm::GasWeightMapping as _;
20092011

@@ -2065,6 +2067,7 @@ impl_runtime_apis! {
20652067
max_priority_fee_per_gas,
20662068
nonce,
20672069
access_list.unwrap_or_default(),
2070+
authorization_list.unwrap_or_default(),
20682071
false,
20692072
true,
20702073
weight_limit,
@@ -2083,6 +2086,7 @@ impl_runtime_apis! {
20832086
nonce: Option<U256>,
20842087
estimate: bool,
20852088
access_list: Option<Vec<(H160, Vec<H256>)>>,
2089+
authorization_list: Option<AuthorizationList>,
20862090
) -> Result<pallet_evm::CreateInfo, sp_runtime::DispatchError> {
20872091
use pallet_evm::GasWeightMapping as _;
20882092

@@ -2147,6 +2151,7 @@ impl_runtime_apis! {
21472151
access_list.unwrap_or_default(),
21482152
whitelist,
21492153
whitelist_disabled,
2154+
authorization_list.unwrap_or_default(),
21502155
false,
21512156
true,
21522157
weight_limit,

0 commit comments

Comments
 (0)