From 4db3c649644b2ab927abde8536615e673cd0a32c Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Tue, 4 Aug 2026 19:35:20 -0700 Subject: [PATCH] Fix Schema references. --- src/lib/rpc/index.ts | 2 +- src/lib/wallet/refresh.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/rpc/index.ts b/src/lib/rpc/index.ts index 67e8e9b..fe3f3c2 100644 --- a/src/lib/rpc/index.ts +++ b/src/lib/rpc/index.ts @@ -98,7 +98,7 @@ export class Rpc { if (!/^[a-z]+(_[a-z]+)*$/i.test(action)) { throw new TypeError('RPC action contains invalid characters') } - if (!Object.hasOwn(action)) { + if (!Object.hasOwn(Schema, action)) { throw new TypeError('Unknown RPC action') } } diff --git a/src/lib/wallet/refresh.ts b/src/lib/wallet/refresh.ts index 15dc5c5..53fd2c3 100644 --- a/src/lib/wallet/refresh.ts +++ b/src/lib/wallet/refresh.ts @@ -3,7 +3,7 @@ import { Account } from '../account' import { Block } from '../block' -import { Rpc } from '../rpc' +import { Rpc, Schema } from '../rpc' import { Wallet } from '../wallet' export type BlockInfo = { -- 2.52.0