2323
2424use crate :: {
2525 address:: AddressMapper ,
26- evm:: api:: { recover_eth_address_from_message, rlp, SignedAuthorizationListEntry } ,
26+ evm:: api:: { recover_eth_address_from_message, rlp, AuthorizationListEntry } ,
2727 storage:: AccountInfo ,
2828 weights:: WeightInfo ,
2929 Config ,
@@ -58,7 +58,7 @@ pub const EIP7702_MAGIC: u8 = 0x05;
5858/// # Returns
5959/// `Ok(())` on success, or `Err` if out of weight
6060pub fn process_authorizations < T : Config > (
61- authorization_list : & [ SignedAuthorizationListEntry ] ,
61+ authorization_list : & [ AuthorizationListEntry ] ,
6262 chain_id : U256 ,
6363 meter : & mut WeightMeter ,
6464) -> DispatchResult {
@@ -94,7 +94,7 @@ pub fn process_authorizations<T: Config>(
9494/// Returns the authority address if validation succeeds, None otherwise.
9595/// This is exposed for benchmarking purposes.
9696pub ( crate ) fn validate_authorization < T : Config > (
97- auth : & SignedAuthorizationListEntry ,
97+ auth : & AuthorizationListEntry ,
9898 chain_id : U256 ,
9999) -> Option < H160 > {
100100 // Validate chain_id
@@ -180,7 +180,7 @@ pub(crate) fn apply_delegation<T: Config>(authority: &H160, target_address: H160
180180///
181181/// Implements the EIP-7702 signature recovery:
182182/// - Message = keccak(MAGIC || rlp([chain_id, address, nonce]))
183- fn recover_authority ( auth : & SignedAuthorizationListEntry ) -> Result < H160 , ( ) > {
183+ fn recover_authority ( auth : & AuthorizationListEntry ) -> Result < H160 , ( ) > {
184184 let mut message = Vec :: new ( ) ;
185185 message. push ( EIP7702_MAGIC ) ;
186186
@@ -198,7 +198,7 @@ fn recover_authority(auth: &SignedAuthorizationListEntry) -> Result<H160, ()> {
198198pub ( crate ) fn sign_authorization (
199199 signing_key : & k256:: ecdsa:: SigningKey ,
200200 authorization_unsigned : crate :: evm:: UnsignedAuthorizationListEntry ,
201- ) -> SignedAuthorizationListEntry {
201+ ) -> AuthorizationListEntry {
202202 use sp_core:: keccak_256;
203203
204204 let mut message = Vec :: new ( ) ;
@@ -209,7 +209,7 @@ pub(crate) fn sign_authorization(
209209 let ( signature, recovery_id) =
210210 signing_key. sign_prehash_recoverable ( & hash) . expect ( "signing succeeds" ) ;
211211
212- SignedAuthorizationListEntry {
212+ AuthorizationListEntry {
213213 authorization_unsigned,
214214 y_parity : U256 :: from ( recovery_id. to_byte ( ) ) ,
215215 r : U256 :: from_big_endian ( & signature. r ( ) . to_bytes ( ) ) ,
0 commit comments