snaps icon indicating copy to clipboard operation
snaps copied to clipboard

Snaps CLI should warn or error if “endowment:rpc” object is empty

Open Montoya opened this issue 1 year ago • 0 comments

If a Snap manifest has the RPC endowment with an empty object like so:

“endowment:rpc”: {}

This will cause an error in MetaMask when attempting to connect like so: An error happened: Invalid JSON-RPC origins: Must specify at least one JSON-RPC origin

The CLI should warn that the endowment will not be functional without at least one origin such as "dapps":true

Montoya avatar May 14 '24 15:05 Montoya