MCPcopy Create free account
hub / github.com/MetaMask/rpc-errors / serialize

Method serialize

src/utils.test.ts:289–291  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

287 it('serializes error with serialize() method', () => {
288 class MockClass {
289 serialize() {
290 return { code: 1, message: 'foo' };
291 }
292 }
293 const error = new MockClass();
294 const result = serializeError(error);

Callers 2

buildErrorFunction · 0.45
errors.test.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected