@@ -4,7 +4,6 @@ import type { RemoteFeatureFlagControllerGetStateAction } from '@metamask/remote
4
4
import type { Hex } from '@metamask/utils' ;
5
5
import { remove0x } from '@metamask/utils' ;
6
6
7
- import type { KeyringControllerSignAuthorization } from './eip7702' ;
8
7
import {
9
8
DELEGATION_PREFIX ,
10
9
doesChainSupportEIP7702 ,
@@ -17,6 +16,7 @@ import {
17
16
getEIP7702SupportedChains ,
18
17
} from './feature-flags' ;
19
18
import { Messenger } from '../../../base-controller/src' ;
19
+ import type { KeyringControllerSignEip7702AuthorizationAction } from '../../../keyring-controller/src' ;
20
20
import type { TransactionControllerMessenger } from '../TransactionController' ;
21
21
import type { AuthorizationList } from '../types' ;
22
22
import { TransactionStatus , type TransactionMeta } from '../types' ;
@@ -72,7 +72,7 @@ const AUTHORIZATION_LIST_MOCK: AuthorizationList = [
72
72
73
73
describe ( 'EIP-7702 Utils' , ( ) => {
74
74
let baseMessenger : Messenger <
75
- | KeyringControllerSignAuthorization
75
+ | KeyringControllerSignEip7702AuthorizationAction
76
76
| RemoteFeatureFlagControllerGetStateAction ,
77
77
never
78
78
> ;
@@ -87,7 +87,7 @@ describe('EIP-7702 Utils', () => {
87
87
) ;
88
88
89
89
let signAuthorizationMock : jest . MockedFn <
90
- KeyringControllerSignAuthorization [ 'handler' ]
90
+ KeyringControllerSignEip7702AuthorizationAction [ 'handler' ]
91
91
> ;
92
92
93
93
beforeEach ( ( ) => {
@@ -100,13 +100,13 @@ describe('EIP-7702 Utils', () => {
100
100
. mockResolvedValue ( AUTHORIZATION_SIGNATURE_MOCK ) ;
101
101
102
102
baseMessenger . registerActionHandler (
103
- 'KeyringController:signEip7702AuthorizationMessage ' ,
103
+ 'KeyringController:signEip7702Authorization ' ,
104
104
signAuthorizationMock ,
105
105
) ;
106
106
107
107
controllerMessenger = baseMessenger . getRestricted ( {
108
108
name : 'TransactionController' ,
109
- allowedActions : [ 'KeyringController:signEip7702AuthorizationMessage ' ] ,
109
+ allowedActions : [ 'KeyringController:signEip7702Authorization ' ] ,
110
110
allowedEvents : [ ] ,
111
111
} ) ;
112
112
} ) ;
0 commit comments