From fd7bb6ae1c27ffe5d41f3a818ee9034d9bb76138 Mon Sep 17 00:00:00 2001 From: Mateusz Franik <47059999+Im-Beast@users.noreply.github.com> Date: Wed, 16 Oct 2024 07:55:11 +0200 Subject: feat: wownero typescript bindings, regression tests (#71) * regression tests * ci: move regression_check to full_check workflow, reuse artifact build * feat: support wownero in monero.ts bindings * ci: test wownero regressions as well * extract wownero-cli as wownero * actually load wownero when specified * fix: commitUR not being a symbol in wownero --- impls/monero.ts/src/wallet_manager.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'impls/monero.ts/src/wallet_manager.ts') diff --git a/impls/monero.ts/src/wallet_manager.ts b/impls/monero.ts/src/wallet_manager.ts index ad9cf31..b1fafec 100644 --- a/impls/monero.ts/src/wallet_manager.ts +++ b/impls/monero.ts/src/wallet_manager.ts @@ -1,5 +1,4 @@ -import { dylib } from "./bindings.ts"; -import { Sanitizer } from "./utils.ts"; +import { getSymbol, Sanitizer } from "./utils.ts"; export type WalletManagerPtr = Deno.PointerObject<"walletManager">; @@ -17,7 +16,7 @@ export class WalletManager { } static async new(sanitizer?: Sanitizer) { - const ptr = await dylib.symbols.MONERO_WalletManagerFactory_getWalletManager(); + const ptr = await getSymbol("WalletManagerFactory_getWalletManager")(); if (!ptr) { sanitizer?.(); throw new Error("Failed retrieving wallet manager"); -- cgit v1.2.3