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)
|
///: BEGIN:ONLY_INCLUDE_IN(flask)
|
||||||
this.workerController = new IframeExecutionService({
|
this.snapExecutionService = new IframeExecutionService({
|
||||||
iframeUrl: new URL(
|
iframeUrl: new URL(
|
||||||
'https://metamask.github.io/iframe-execution-environment/0.4.6',
|
'https://metamask.github.io/iframe-execution-environment/0.4.6',
|
||||||
),
|
),
|
||||||
@ -669,17 +669,17 @@ export default class MetamaskController extends EventEmitter {
|
|||||||
|
|
||||||
this.snapController = new SnapController({
|
this.snapController = new SnapController({
|
||||||
environmentEndowmentPermissions: Object.values(EndowmentPermissions),
|
environmentEndowmentPermissions: Object.values(EndowmentPermissions),
|
||||||
terminateAllSnaps: this.workerController.terminateAllSnaps.bind(
|
terminateAllSnaps: this.snapExecutionService.terminateAllSnaps.bind(
|
||||||
this.workerController,
|
this.snapExecutionService,
|
||||||
),
|
),
|
||||||
terminateSnap: this.workerController.terminateSnap.bind(
|
terminateSnap: this.snapExecutionService.terminateSnap.bind(
|
||||||
this.workerController,
|
this.snapExecutionService,
|
||||||
),
|
),
|
||||||
executeSnap: this.workerController.executeSnap.bind(
|
executeSnap: this.snapExecutionService.executeSnap.bind(
|
||||||
this.workerController,
|
this.snapExecutionService,
|
||||||
),
|
),
|
||||||
getRpcMessageHandler: this.workerController.getRpcMessageHandler.bind(
|
getRpcMessageHandler: this.snapExecutionService.getRpcMessageHandler.bind(
|
||||||
this.workerController,
|
this.snapExecutionService,
|
||||||
),
|
),
|
||||||
closeAllConnections: this.removeAllConnections.bind(this),
|
closeAllConnections: this.removeAllConnections.bind(this),
|
||||||
state: initState.SnapController,
|
state: initState.SnapController,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user