MetaMask / MetaMask/smart-accounts-kit

Improvement: Standardized Context Management for ERC-7715 Permissions

Open
#121 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
63
Forks
45
Avg merge
4d 15h
Merged PRs (30d)
2

Description

While implementing ERC-7715 permissions in EnvioPilot, we found that managing the permissionsContext between the initial request and the subsequent redemption (often in different parts of the app or different sessions) requires custom state management.

It would be beneficial if the smart-accounts-kit provided:

A hook or utility to persist and retrieve active permission contexts.
More granular error types for when a permission redemption fails due to limit exhaustion or expiry.
Impact: This would lower the barrier for developers to implement complex, long-running permissions and improve the overall developer experience.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the existing ERC-7715 permission request and redemption flow in the TypeScript kit. Clarify the intended persistence boundary across app areas or sessions and the exact distinction between limit exhaustion and expiry. The work is complete when the context utility and granular errors are agreed and validated with appropriate tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
developer-experience
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.