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

[FLASK] Fix missing snap hook (#15354)

This commit is contained in:
Frederik Bolding 2022-07-27 16:49:57 +02:00 committed by GitHub
parent 652d631cda
commit 8a550ce003
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3728,6 +3728,9 @@ export default class MetamaskController extends EventEmitter {
engine.push(
createSnapMethodMiddleware(subjectType === SUBJECT_TYPES.SNAP, {
getAppKey: this.getAppKeyForSubject.bind(this, origin),
getUnlockPromise: this.appStateController.getUnlockPromise.bind(
this.appStateController,
),
getSnaps: this.snapController.getPermittedSnaps.bind(
this.snapController,
origin,