File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
packages/snaps-controllers/src/services Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,10 @@ export type TerminateJobArgs<WorkerType> = Partial<Job<WorkerType>> &
6464export abstract class AbstractExecutionService < WorkerType >
6565 implements ExecutionService
6666{
67+ name = 'ExecutionService' as const ;
68+
69+ state = null ;
70+
6771 #snapRpcHooks: Map < string , SnapRpcHook > ;
6872
6973 // Cannot be hash private yet because of tests.
Original file line number Diff line number Diff line change @@ -12,6 +12,11 @@ type HandleRpcRequest = (
1212) => Promise < unknown > ;
1313
1414export interface ExecutionService {
15+ // These fields are required for modular initialisation of the execution
16+ // service in the MetaMask extension.
17+ name : 'ExecutionService' ;
18+ state : null ;
19+
1520 terminateSnap : TerminateSnap ;
1621 terminateAllSnaps : TerminateAll ;
1722 executeSnap : ExecuteSnap ;
You can’t perform that action at this time.
0 commit comments