1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Removed onExecutionEnvironmentError (#14698)

* used correct method to stop snap

* removed dead code, snap controller already subscribes to execution environment errors

* fixed linting error
This commit is contained in:
Hassan Malik 2022-05-12 17:58:37 -04:00 committed by GitHub
parent d305dcba9d
commit a3917763d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -637,7 +637,6 @@ export default class MetamaskController extends EventEmitter {
///: BEGIN:ONLY_INCLUDE_IN(flask)
this.workerController = new IframeExecutionService({
onError: this.onExecutionEnvironmentError.bind(this),
iframeUrl: new URL(
'https://metamask.github.io/iframe-execution-environment/0.4.5',
),
@ -3377,17 +3376,6 @@ export default class MetamaskController extends EventEmitter {
}
///: BEGIN:ONLY_INCLUDE_IN(flask)
/**
* For snaps running in workers.
*
* @param snapId
* @param error
*/
onExecutionEnvironmentError(snapId, error) {
this.snapController.stopPlugin(snapId);
this.snapController.addSnapError(error);
}
/**
* For snaps running in workers.
*