MetaMask / MetaMask/snaps

Error for invoke-snap example

Open
#2,365 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
853
Forks
662
Avg merge
2d 8h
Merged PRs (30d)
8

Description

I installed two snaps in https://github.com/MetaMask/snaps/tree/main/packages/examples/packages/invoke-snap and using the following code to revoke @metamask/consumer-signer-example-snap, but there is the same error as https://github.com/MetaMask/snaps/issues/2340 :

```
await window.ethereum.request({
method: 'wallet_requestSnaps',
params: {
'npm:@metamask/consumer-signer-example-snap': {},
},
});

const response = await window.ethereum.request({
method: 'wallet_invokeSnap',
params: {
snapId: 'npm:@metamask/consumer-signer-example-snap',
request: {
method: 'signMessage',
params: { message: 'test' },
},
},
});
```

image

Contributor guide

Open the contributing guide

Research direction

Start in packages/examples/packages/invoke-snap and reproduce the wallet_requestSnaps and wallet_invokeSnap calls shown in the issue. Compare the failure with issue #2340 and inspect the example's Snap setup; done means the invoke-snap example no longer produces the reported error or clearly documents the remaining limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.