MetaMask / snaps

Extend the functionality of MetaMask using Snaps
https://metamask.io/snaps/
Other
724 stars 557 forks source link

Permitted error for snap invoking the other snap #2340

Open huweihong opened 5 months ago

huweihong commented 5 months ago

According the example https://github.com/MetaMask/snaps/tree/main/packages/examples/packages/invoke-snap , I wrote two snaps: snapA: local:http://localhost:8080 snapB: local:http://localhost:8081

snapA invoke snapB, but there is the permitted error. Are there some other configures?

image
huweihong commented 5 months ago

I added the permission in the snap.manifest.json of snapB :

 "initialPermissions": {
    "endowment:rpc": {
      "snaps": true
    },
  }, 

But there is the following error:

image