aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ark.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-28 15:16:20 -0800
committerAdam Soltys <[email protected]>2026-02-28 15:16:20 -0800
commit32f01e3e328db0006a55c6324625b49d60244b66 (patch)
treeb97866549b919964957365e1e05681e85af7021a /lib/ark.ts
parenta1632ae402d11fdd7ffc360de97c55e0b4fad677 (diff)
downloadcoinos-server-32f01e3e328db0006a55c6324625b49d60244b66.tar.gz
coinos-server-32f01e3e328db0006a55c6324625b49d60244b66.zip
fix typescript issues
Diffstat (limited to 'lib/ark.ts')
-rw-r--r--lib/ark.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ark.ts b/lib/ark.ts
index 6558a74a..25d39d4d 100644
--- a/lib/ark.ts
+++ b/lib/ark.ts
@@ -1,5 +1,5 @@
import { EventSource } from "eventsource";
-if (!globalThis.EventSource) globalThis.EventSource = EventSource;
+if (!globalThis.EventSource) globalThis.EventSource = EventSource as any;
import config from "$config";
import { SingleKey, Wallet, Ramps, RestArkProvider, VtxoManager } from "@arkade-os/sdk";
@@ -149,6 +149,6 @@ export const verifyArkVtxo = async (hash: string) => {
const r = await fetch(
`${config.ark.arkServerUrl}/v1/indexer/vtxos?scripts=5120${vtxoHex}&spendable_only=true`,
);
- const { vtxos } = await r.json();
+ const { vtxos } = await r.json() as any;
return vtxos?.some((v: any) => v.outpoint?.txid === hash) ?? false;
};