mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
[FLASK] Rename workerController
to snapExecutionService
(#14981)
Renames the `MetaMaskController.workerController` property to `snapExecutionService`, which better matches the naming scheme used throughout the Snaps codebase. No functional changes.
This commit is contained in:
parent
843beb6d20
commit
b491367632
@ -640,7 +640,7 @@ export default class MetamaskController extends EventEmitter {
|
||||
});
|
||||
|
||||
///: BEGIN:ONLY_INCLUDE_IN(flask)
|
||||
this.workerController = new IframeExecutionService({
|
||||
this.snapExecutionService = new IframeExecutionService({
|
||||
iframeUrl: new URL(
|
||||
'https://metamask.github.io/iframe-execution-environment/0.4.6',
|
||||
),
|
||||
@ -669,17 +669,17 @@ export default class MetamaskController extends EventEmitter {
|
||||
|
||||
this.snapController = new SnapController({
|
||||
environmentEndowmentPermissions: Object.values(EndowmentPermissions),
|
||||
terminateAllSnaps: this.workerController.terminateAllSnaps.bind(
|
||||
this.workerController,
|
||||
terminateAllSnaps: this.snapExecutionService.terminateAllSnaps.bind(
|
||||
this.snapExecutionService,
|
||||
),
|
||||
terminateSnap: this.workerController.terminateSnap.bind(
|
||||
this.workerController,
|
||||
terminateSnap: this.snapExecutionService.terminateSnap.bind(
|
||||
this.snapExecutionService,
|
||||
),
|
||||
executeSnap: this.workerController.executeSnap.bind(
|
||||
this.workerController,
|
||||
executeSnap: this.snapExecutionService.executeSnap.bind(
|
||||
this.snapExecutionService,
|
||||
),
|
||||
getRpcMessageHandler: this.workerController.getRpcMessageHandler.bind(
|
||||
this.workerController,
|
||||
getRpcMessageHandler: this.snapExecutionService.getRpcMessageHandler.bind(
|
||||
this.snapExecutionService,
|
||||
),
|
||||
closeAllConnections: this.removeAllConnections.bind(this),
|
||||
state: initState.SnapController,
|
||||
|
Loading…
Reference in New Issue
Block a user