diff options
| author | Czarek Nakamoto <cyjan@mrcyjanek.net> | 2024-03-20 22:45:38 +0100 |
|---|---|---|
| committer | Czarek Nakamoto <cyjan@mrcyjanek.net> | 2024-03-20 22:45:38 +0100 |
| commit | 8775db7e945552e4f23c429dde4ddf91d974a5a2 (patch) | |
| tree | decc60c515cc1ad1f59456d843fdbc5abf67d753 | |
| parent | a857afee1cd33ce068691a110ca649145c433f0f (diff) | |
fix: crash on linux
also: make builds debug by default.
| -rwxr-xr-x | build_single.sh | 2 | ||||
| -rw-r--r-- | libbridge/src/main/cpp/wallet2_api_c.cpp | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/build_single.sh b/build_single.sh index 34d03f1..bbb8ead 100755 --- a/build_single.sh +++ b/build_single.sh @@ -134,7 +134,7 @@ pushd libbridge mkdir -p build/${HOST_ABI} -p cd build/${HOST_ABI} - env CC="${CC}" CXX="${CXX}" cmake -DHOST_ABI=${HOST_ABI} ../.. + env CC="${CC}" CXX="${CXX}" cmake -DCMAKE_BUILD_TYPE=Debug -DHOST_ABI=${HOST_ABI} ../.. env CC="${CC}" CXX="${CXX}" make $NPROC popd diff --git a/libbridge/src/main/cpp/wallet2_api_c.cpp b/libbridge/src/main/cpp/wallet2_api_c.cpp index 8277858..d5da3e1 100644 --- a/libbridge/src/main/cpp/wallet2_api_c.cpp +++ b/libbridge/src/main/cpp/wallet2_api_c.cpp @@ -1189,7 +1189,6 @@ void* MONERO_Wallet_createTransaction(void* wallet_ptr, const char* dst_addr, co } std::set<uint32_t> subaddr_indices = {}; std::set<std::string> preferred_inputs = splitString(std::string(preferredInputs), std::string(separator)); - auto oneInput = *(preferred_inputs.begin()); return wallet->createTransaction(std::string(dst_addr), std::string(payment_id), optAmount, mixin_count, PendingTransaction_Priority_fromInt(pendingTransactionPriority), |
