From 1b109ac70280f61845919ec80be1f8f64c999eff Mon Sep 17 00:00:00 2001 From: cyan Date: Mon, 22 Jul 2024 17:42:13 +0200 Subject: [PATCH] make "Null check used on null value" errors when .so errors out more useful (#1549) bump monero_c commit to fix enotes error --- cw_monero/lib/api/wallet_manager.dart | 1 + cw_wownero/lib/api/wallet_manager.dart | 1 + scripts/prepare_moneroc.sh | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cw_monero/lib/api/wallet_manager.dart b/cw_monero/lib/api/wallet_manager.dart index f77ef05e2..02ce2b7d6 100644 --- a/cw_monero/lib/api/wallet_manager.dart +++ b/cw_monero/lib/api/wallet_manager.dart @@ -21,6 +21,7 @@ final monero.WalletManager wmPtr = Pointer.fromAddress((() { print("ptr: $_wmPtr"); } catch (e) { print(e); + rethrow; } return _wmPtr!.address; })()); diff --git a/cw_wownero/lib/api/wallet_manager.dart b/cw_wownero/lib/api/wallet_manager.dart index e90843538..68d0796f9 100644 --- a/cw_wownero/lib/api/wallet_manager.dart +++ b/cw_wownero/lib/api/wallet_manager.dart @@ -21,6 +21,7 @@ final wownero.WalletManager wmPtr = Pointer.fromAddress((() { print("ptr: $_wmPtr"); } catch (e) { print(e); + rethrow; } return _wmPtr!.address; })()); diff --git a/scripts/prepare_moneroc.sh b/scripts/prepare_moneroc.sh index e91b3d4a4..cac5d3ad2 100755 --- a/scripts/prepare_moneroc.sh +++ b/scripts/prepare_moneroc.sh @@ -8,7 +8,7 @@ if [[ ! -d "monero_c" ]]; then git clone https://github.com/mrcyjanek/monero_c --branch rewrite-wip cd monero_c - git checkout d1e246aaf4c53b60ff9e4ab4a4ac3ae4a1f94a33 + git checkout c094ed5da69d2274747bf6edd7ca24124487bd34 git reset --hard git submodule update --init --force --recursive ./apply_patches.sh monero