Following #444, we should suspend the Snaps request processing timeout while the Snap is waiting for a response from a snaps_-prefixed method. A Snap may make requests for eth_ and other methods via wallet.request(), and we should not suspend the timeout for those. This feature should be implemented by means of some middleware that inspects JSON-RPC made from Snaps to MetaMask. Ideally, this should not require modifying the extension's own RPC pipeline, but should be encapsulated in the Snaps execution service and/or SnapController.
Following #444, we should suspend the Snaps request processing timeout while the Snap is waiting for a response from a
snaps_
-prefixed method. A Snap may make requests foreth_
and other methods viawallet.request()
, and we should not suspend the timeout for those. This feature should be implemented by means of some middleware that inspects JSON-RPC made from Snaps to MetaMask. Ideally, this should not require modifying the extension's own RPC pipeline, but should be encapsulated in the Snaps execution service and/orSnapController
.