summaryrefslogtreecommitdiff
path: root/impls/monero.dart/lib/src/wownero.dart
diff options
context:
space:
mode:
authorcyan <cyjan@mrcyjanek.net>2025-04-21 10:45:11 +0000
committercyan <cyjan@mrcyjanek.net>2025-04-21 10:45:11 +0000
commitb335585a7fb94b315eb52bd88f2da6d3489fa508 (patch)
tree6d97124eeb0b80b6dbb369a696b405877b960bd2 /impls/monero.dart/lib/src/wownero.dart
parent24cce8f2cff643f8dcdd4740c529e1ac066dd717 (diff)
add wallet close functionoo-monerodart
Diffstat (limited to 'impls/monero.dart/lib/src/wownero.dart')
-rw-r--r--impls/monero.dart/lib/src/wownero.dart5
1 files changed, 5 insertions, 0 deletions
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;