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

Function dataHasCause

src/utils.ts:252–257  ·  view source on GitHub ↗
(data: unknown)

Source from the content-addressed store, hash-verified

250 * @returns Whether cause property is present and an object.
251 */
252export function dataHasCause(data: unknown): data is {
253 [key: string]: Json | unknown;
254 cause: object;
255} {
256 return isObject(data) && hasProperty(data, 'cause') && isObject(data.cause);
257}

Callers 2

utils.test.tsFile · 0.90
constructorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…