From b335585a7fb94b315eb52bd88f2da6d3489fa508 Mon Sep 17 00:00:00 2001 From: cyan Date: Mon, 21 Apr 2025 10:45:11 +0000 Subject: add wallet close function --- impls/monero.dart/lib/src/wownero.dart | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'impls/monero.dart/lib/src/wownero.dart') diff --git a/impls/monero.dart/lib/src/wownero.dart b/impls/monero.dart/lib/src/wownero.dart index cd16f9b..c1ef9eb 100644 --- a/impls/monero.dart/lib/src/wownero.dart +++ b/impls/monero.dart/lib/src/wownero.dart @@ -1649,6 +1649,11 @@ class WowneroWalletManager implements Wallet2WalletManager { bool walletExists(String path) { return wownero.WalletManager_walletExists(wmPtr, path); } + + @override + void closeWallet(Wallet2Wallet wallet, bool store) { + wownero.WalletManager_closeWallet(wmPtr, Pointer.fromAddress(wallet.ffiAddress()), store); + } @override int ffiAddress() => wmPtr.address; -- cgit v1.2.3