]> git.codecow.com Git - libnemo.git/commitdiff
Fix Schema references.
authorChris Duncan <chris@codecow.com>
Wed, 5 Aug 2026 02:35:20 +0000 (19:35 -0700)
committerChris Duncan <chris@codecow.com>
Wed, 5 Aug 2026 02:35:20 +0000 (19:35 -0700)
src/lib/rpc/index.ts
src/lib/wallet/refresh.ts

index 67e8e9b55b72e6a32602a16c06aa660bcb942ba2..fe3f3c2480ff1d1552fedd016dadae34e3263bf6 100644 (file)
@@ -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')
                }
        }
index 15dc5c5465369652d419cc89cd8c81430cb30185..53fd2c3ee111548928fc9d207ce41cf2cb39ccf4 100644 (file)
@@ -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 = {