From bc8d1a0b75b97156d71579581b4cdfe58c777ed2 Mon Sep 17 00:00:00 2001 From: Kiril <54142726+phrontizo@users.noreply.github.com> Date: Fri, 20 Mar 2026 10:07:58 +0000 Subject: Fix copy-paste bugs in cw_WalletListener wrapper functions (#183) Three exported functions incorrectly call cw_isNeedToRefresh() instead of their intended methods: - isNewTransactionExist: now calls cw_isNewTransactionExist() - resetIsNewTransactionExist: now calls cw_resetIsNewTransactionExist() - height: now calls cw_height() Fixes #182 --- monero_libwallet2_api_c/src/main/cpp/monero_wallet2_api_c.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'monero_libwallet2_api_c/src') diff --git a/monero_libwallet2_api_c/src/main/cpp/monero_wallet2_api_c.cpp b/monero_libwallet2_api_c/src/main/cpp/monero_wallet2_api_c.cpp index ef48447..b9ff95f 100644 --- a/monero_libwallet2_api_c/src/main/cpp/monero_wallet2_api_c.cpp +++ b/monero_libwallet2_api_c/src/main/cpp/monero_wallet2_api_c.cpp @@ -2638,21 +2638,21 @@ bool MONERO_cw_WalletListener_isNeedToRefresh(void* cw_walletListener_ptr) { bool MONERO_cw_WalletListener_isNewTransactionExist(void* cw_walletListener_ptr) { DEBUG_START() MONERO_cw_WalletListener *listener = reinterpret_cast(cw_walletListener_ptr); - return listener->cw_isNeedToRefresh(); + return listener->cw_isNewTransactionExist(); DEBUG_END() }; void MONERO_cw_WalletListener_resetIsNewTransactionExist(void* cw_walletListener_ptr) { DEBUG_START() MONERO_cw_WalletListener *listener = reinterpret_cast(cw_walletListener_ptr); - listener->cw_isNeedToRefresh(); + listener->cw_resetIsNewTransactionExist(); DEBUG_END() }; uint64_t MONERO_cw_WalletListener_height(void* cw_walletListener_ptr) { DEBUG_START() MONERO_cw_WalletListener *listener = reinterpret_cast(cw_walletListener_ptr); - return listener->cw_isNeedToRefresh(); + return listener->cw_height(); DEBUG_END() }; -- cgit v1.2.3