summaryrefslogtreecommitdiff
path: root/wownero_libwallet2_api_c/src/main/cpp/wownero_wallet2_api_c.cpp
diff options
context:
space:
mode:
authorKiril <54142726+phrontizo@users.noreply.github.com>2026-03-20 10:07:58 +0000
committerGitHub <noreply@github.com>2026-03-20 11:07:58 +0100
commitbc8d1a0b75b97156d71579581b4cdfe58c777ed2 (patch)
tree0879e4e679a541d7f2185e6e5776b837ec0b7858 /wownero_libwallet2_api_c/src/main/cpp/wownero_wallet2_api_c.cpp
parentc157cb82973b05d1226b39b4d8de0bec4aa10000 (diff)
Fix copy-paste bugs in cw_WalletListener wrapper functions (#183)HEADdevelop
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
Diffstat (limited to 'wownero_libwallet2_api_c/src/main/cpp/wownero_wallet2_api_c.cpp')
-rw-r--r--wownero_libwallet2_api_c/src/main/cpp/wownero_wallet2_api_c.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/wownero_libwallet2_api_c/src/main/cpp/wownero_wallet2_api_c.cpp b/wownero_libwallet2_api_c/src/main/cpp/wownero_wallet2_api_c.cpp
index 7e15211..89e5547 100644
--- a/wownero_libwallet2_api_c/src/main/cpp/wownero_wallet2_api_c.cpp
+++ b/wownero_libwallet2_api_c/src/main/cpp/wownero_wallet2_api_c.cpp
@@ -2381,21 +2381,21 @@ bool WOWNERO_cw_WalletListener_isNeedToRefresh(void* cw_walletListener_ptr) {
bool WOWNERO_cw_WalletListener_isNewTransactionExist(void* cw_walletListener_ptr) {
DEBUG_START()
WOWNERO_cw_WalletListener *listener = reinterpret_cast<WOWNERO_cw_WalletListener*>(cw_walletListener_ptr);
- return listener->cw_isNeedToRefresh();
+ return listener->cw_isNewTransactionExist();
DEBUG_END()
};
void WOWNERO_cw_WalletListener_resetIsNewTransactionExist(void* cw_walletListener_ptr) {
DEBUG_START()
WOWNERO_cw_WalletListener *listener = reinterpret_cast<WOWNERO_cw_WalletListener*>(cw_walletListener_ptr);
- listener->cw_isNeedToRefresh();
+ listener->cw_resetIsNewTransactionExist();
DEBUG_END()
};
uint64_t WOWNERO_cw_WalletListener_height(void* cw_walletListener_ptr) {
DEBUG_START()
WOWNERO_cw_WalletListener *listener = reinterpret_cast<WOWNERO_cw_WalletListener*>(cw_walletListener_ptr);
- return listener->cw_isNeedToRefresh();
+ return listener->cw_height();
DEBUG_END()
};