MCPcopy Create free account
hub / github.com/Web3Auth/Auth / isJRPCFailure

Function isJRPCFailure

src/utils/jrpc.ts:101–103  ·  view source on GitHub ↗
(response: JRPCBase)

Source from the content-addressed store, hash-verified

99 * Type guard to check if a JRPC response is a failure (has `error`).
100 */
101export function isJRPCFailure(response: JRPCBase): response is JRPCFailure {
102 return "error" in response;
103}
104
105// ─── Instance Checks ────────────────────────────────────────────────────────────
106

Callers 2

jrpcUtils.test.tsFile · 0.90
_checkForCompletionMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected