Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add approval controller count methods #304

Merged
merged 3 commits into from
Nov 10, 2020
Merged

Conversation

rekmarks
Copy link
Member

@rekmarks rekmarks commented Nov 10, 2020

Adds two methods to the approval controller:

  • getTotalApprovalCount, for getting the total count of all approvals, regardless of origin and type
  • getApprovalCount, for getting the count of all approvals by origin, type, or both

We need this for e.g. the the updateBadge functionality in the MetaMask extension. Implementing the methods on the controller itself is better than hacking it on at the consumer layer.

@rekmarks rekmarks requested a review from a team as a code owner November 10, 2020 23:32
Copy link
Contributor

@brad-decker brad-decker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@rekmarks rekmarks merged commit 762396f into develop Nov 10, 2020
@rekmarks rekmarks deleted the approval-controller-count branch November 10, 2020 23:53
This was referenced Nov 10, 2020
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
Adds two methods to the approval controller:
- `getTotalApprovalCount`, for getting the total count of all approvals, regardless of origin and type
- `getApprovalCount`, for getting the count of all approvals by origin, type, or both
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
Adds two methods to the approval controller:
- `getTotalApprovalCount`, for getting the total count of all approvals, regardless of origin and type
- `getApprovalCount`, for getting the count of all approvals by origin, type, or both
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants