MCPcopy Create free account
hub / github.com/wevm/viem / constructor

Method constructor

src/errors/rpc.ts:93–104  ·  view source on GitHub ↗
(
    cause: Error,
    options: Prettify<
      RpcErrorOptions<ProviderRpcErrorCode> & {
        data?: T | undefined
      }
    >,
  )

Source from the content-addressed store, hash-verified

91 data?: T | undefined
92
93 constructor(
94 cause: Error,
95 options: Prettify<
96 RpcErrorOptions<ProviderRpcErrorCode> & {
97 data?: T | undefined
98 }
99 >,
100 ) {
101 super(cause, options)
102
103 this.data = options.data
104 }
105}
106
107/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected