From a563bc5e79c38dca9fd72c44682f2c272a465f4b Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Mon, 25 Nov 2024 16:37:09 -0800 Subject: [PATCH] Revise --- integration_test/src/main.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/integration_test/src/main.rs b/integration_test/src/main.rs index 8a48c2a5..fc51e5be 100644 --- a/integration_test/src/main.rs +++ b/integration_test/src/main.rs @@ -691,9 +691,12 @@ fn test_send_raw_transaction(cl: &Client) { let tx = cl.fund_raw_transaction(&buffer, None, None).unwrap(); - cl.send_raw_transaction(&tx.hex, None).unwrap_err(); - cl.send_raw_transaction(&tx.hex, Some(Amount::from_sat(9))).unwrap_err(); - cl.send_raw_transaction(&tx.hex, Some(Amount::from_sat(10))).unwrap(); + let signed = + cl.sign_raw_transaction_with_wallet(&tx.hex, None, None).unwrap().transaction().unwrap(); + + cl.send_raw_transaction(&signed, None).unwrap_err(); + cl.send_raw_transaction(&signed, Some(Amount::from_sat(9))).unwrap_err(); + cl.send_raw_transaction(&signed, Some(Amount::from_sat(10))).unwrap(); } fn test_invalidate_block_reconsider_block(cl: &Client) {