summaryrefslogtreecommitdiff
path: root/impls/monero.ts/src/wallet_manager.ts
diff options
context:
space:
mode:
authorIm-Beast <franik.mateusz@gmail.com>2024-10-15 12:07:26 +0200
committerIm-Beast <franik.mateusz@gmail.com>2024-10-15 12:07:26 +0200
commit19d5722aeabdb5e42bb14a340cc30854083bb795 (patch)
treeae387273bebef6f61ab93dfcc2a681384d450a41 /impls/monero.ts/src/wallet_manager.ts
parentb1db21e7393854a2067a4674fcb09a441c4314b1 (diff)
feat: support wownero in monero.ts bindings
Diffstat (limited to 'impls/monero.ts/src/wallet_manager.ts')
-rw-r--r--impls/monero.ts/src/wallet_manager.ts5
1 files changed, 2 insertions, 3 deletions
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");