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.
feature/default_network_editable
Whymarrh Whitby 5 years ago committed by GitHub
parent 3485bfbc5c
commit 8d19d63521
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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),

Loading…
Cancel
Save