Closed danfinlay closed 4 years ago
Add more tests of this variety: https://github.com/MetaMask/json-rpc-capabilities-middleware/blob/master/test/caveats.js#L62
It may help to define the caveat with isSuperset(b, a) instead of isSubset(a, b). Need to determine whether this is a readability improvement or a functional change.
isSuperset(b, a)
isSubset(a, b)
This was solved by renaming filterParams to requireParams and adding some tests.
filterParams
requireParams
Add more tests of this variety: https://github.com/MetaMask/json-rpc-capabilities-middleware/blob/master/test/caveats.js#L62
It may help to define the caveat with
isSuperset(b, a)
instead ofisSubset(a, b)
. Need to determine whether this is a readability improvement or a functional change.