From 1fefb81d366163512b1610bfc9302b466bd0846f Mon Sep 17 00:00:00 2001 From: Nemenwq Date: Mon, 29 Jun 2026 16:19:27 +0100 Subject: [PATCH 1/2] Fixed. The verify_source_hashes() function now fails the build with process::exit(1) instead of printing a warning when a source file cannot be read. This ensures the build fails fast if source files are missing or unreadable, preventing runtime failures. --- build.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.rs b/build.rs index d1730e7..ff88564 100644 --- a/build.rs +++ b/build.rs @@ -122,9 +122,10 @@ fn verify_source_hashes() { } Err(e) => { eprintln!( - "cargo:warning=Could not read {} for hash check: {}", + "error[build]: Could not read {} for hash check: {}", path, e ); + process::exit(1); } } } From dc845b6d1567ed15a7b30732da7f007ebbb1bc75 Mon Sep 17 00:00:00 2001 From: somgoli Date: Mon, 29 Jun 2026 16:23:58 +0100 Subject: [PATCH 2/2] Escrow release --- acbu_escrow/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acbu_escrow/src/lib.rs b/acbu_escrow/src/lib.rs index 262ee5a..b78b211 100644 --- a/acbu_escrow/src/lib.rs +++ b/acbu_escrow/src/lib.rs @@ -216,7 +216,7 @@ impl Escrow { // CEI: write state before the external token transfer so any token-level // callback observes the escrow as already recorded. - env.storage() + env.storage() .temporary() .set(&key, &(payer.clone(), payee.clone(), amount, expiry));