From d1bf6b9b99f66733d963027d777abb31a864e097 Mon Sep 17 00:00:00 2001 From: Rahul Patni Date: Thu, 11 Jan 2024 16:41:33 -0800 Subject: [PATCH] test_add_signature test fix (#4535) --- ironfish-rust/src/transaction/mints.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ironfish-rust/src/transaction/mints.rs b/ironfish-rust/src/transaction/mints.rs index 1e47d5ac27..cf0c7d9f6f 100644 --- a/ironfish-rust/src/transaction/mints.rs +++ b/ironfish-rust/src/transaction/mints.rs @@ -693,7 +693,12 @@ mod test { let msg = [0u8; 32]; let signature = private_key.sign(&msg, &mut thread_rng(), *SPENDING_KEY_GENERATOR); let unsigned_spend_description = builder - .build(&key, &public_key_randomness, &randomized_public_key) + .build( + &key.sapling_proof_generation_key(), + &key.public_address(), + &public_key_randomness, + &randomized_public_key, + ) .expect("should be able to build proof"); unsigned_spend_description.add_signature(signature); assert!(public_key.verify(&msg, &signature, *SPENDING_KEY_GENERATOR))