1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 02:10:12 +01:00

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.
This commit is contained in:
Whymarrh Whitby 2020-05-18 16:53:46 -02:30 committed by GitHub
parent 3485bfbc5c
commit 8d19d63521
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -578,7 +578,7 @@ export default class MetamaskController extends EventEmitter {
// permissions // permissions
approvePermissionsRequest: nodeify(permissionsController.approvePermissionsRequest, permissionsController), approvePermissionsRequest: nodeify(permissionsController.approvePermissionsRequest, permissionsController),
clearPermissions: permissionsController.clearPermissions.bind(permissionsController), clearPermissions: permissionsController.clearPermissions.bind(permissionsController),
getApprovedAccounts: nodeify(permissionsController.getAccounts.bind(permissionsController)), getApprovedAccounts: nodeify(permissionsController.getAccounts, permissionsController),
rejectPermissionsRequest: nodeify(permissionsController.rejectPermissionsRequest, permissionsController), rejectPermissionsRequest: nodeify(permissionsController.rejectPermissionsRequest, permissionsController),
removePermissionsFor: permissionsController.removePermissionsFor.bind(permissionsController), removePermissionsFor: permissionsController.removePermissionsFor.bind(permissionsController),
addPermittedAccount: nodeify(permissionsController.addPermittedAccount, permissionsController), addPermittedAccount: nodeify(permissionsController.addPermittedAccount, permissionsController),