Invalid `wallet_requestSnaps` and `wallet_invokeSnap` specs
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- api, documentation
Research direction
Search the repository for the wallet_requestSnaps and wallet_invokeSnap specs and examples. Update each params definition and example so params is an object rather than an array, matching the TypeScript shapes in the issue. Done means both methods consistently use the corrected object format.
Written by the indexing model from the issue text.
Description
wallet_requestSnaps and wallet_invokeSnap use an object as params, but on the docs, the params are currently being wrapped in an array.
The spec and examples should be updated to use this format:
wallet_requestSnaps
type Request = {
method: 'wallet_requestSnaps';
params: Record<SnapId, { version?: SemVerVersion; }>;
}
wallet_invokeSnap
type Request = {
method: 'wallet_invokeSnap',
params: {
snapId: SnapId;
request: {
method: string;
params: Json;
}
}
}
- Dominant language
- JavaScript
- Stars
- 39
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MetaMask/api-specs
-
Difficulty 1/5 Under an hour Newbie friendliness 55/100
-
Difficulty 1/5 Under an hour Newbie friendliness 45/100
-
team-wallet-api-platform
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
team-wallet-api-platform
Difficulty 2/5 1-3 hours Newbie friendliness 42/100
-
team-wallet-api-platform
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
All issues in MetaMask/api-specs
Similar issues
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
apache/cloudstack#14222 ·
-
Browser Waiting for: Product Owner
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
getsentry/sentry-javascript#24577 · 1 comment ·
-
curation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
amponce/archive-movie-browser#186 ·
-
light
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
aemdemos/patients-stryker#253 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
clerk/javascript#9852 ·