From 8d19d63521c107858af99ac4faacdf49eb001e3f Mon Sep 17 00:00:00 2001 From: Whymarrh Whitby Date: Mon, 18 May 2020 16:53:46 -0230 Subject: [PATCH] Bind getApprovedAccounts via nodeify (#8610) This changeset passes the context for getApprovedAccounts to nodeify instead of binding the function directly, as is the pattern used elsewhere. --- app/scripts/metamask-controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index 9c7e3ea98..633707689 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -578,7 +578,7 @@ export default class MetamaskController extends EventEmitter { // permissions approvePermissionsRequest: nodeify(permissionsController.approvePermissionsRequest, permissionsController), clearPermissions: permissionsController.clearPermissions.bind(permissionsController), - getApprovedAccounts: nodeify(permissionsController.getAccounts.bind(permissionsController)), + getApprovedAccounts: nodeify(permissionsController.getAccounts, permissionsController), rejectPermissionsRequest: nodeify(permissionsController.rejectPermissionsRequest, permissionsController), removePermissionsFor: permissionsController.removePermissionsFor.bind(permissionsController), addPermittedAccount: nodeify(permissionsController.addPermittedAccount, permissionsController),