From: Chris Duncan Date: Wed, 5 Aug 2026 02:35:20 +0000 (-0700) Subject: Fix Schema references. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=4db3c649644b2ab927abde8536615e673cd0a32c;p=libnemo.git Fix Schema references. --- 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 = {