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:
parent
3485bfbc5c
commit
8d19d63521
@ -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),
|
||||||
|
Loading…
Reference in New Issue
Block a user