We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e9b038 commit 8b9e40fCopy full SHA for 8b9e40f
packages/snaps-controllers/src/services/AbstractExecutionService.ts
@@ -322,14 +322,14 @@ export abstract class AbstractExecutionService<WorkerType>
322
rpcStream.write = (chunk, encoding, callback) => {
323
// Ignore chain switching notifications as it doesn't matter for the SnapProvider.
324
if (chunk?.data?.method === 'metamask_chainChanged') {
325
- return;
+ return true;
326
}
327
328
if (chunk?.data && hasProperty(chunk?.data, 'id')) {
329
this.#messenger.publish('ExecutionService:outboundResponse', snapId);
330
331
332
- originalWrite(chunk, encoding, callback);
+ return originalWrite(chunk, encoding, callback);
333
};
334
335
// Typecast: stream type mismatch
0 commit comments