@@ -201,7 +201,7 @@ pub(crate) mod testing {
201201 note_encryption:: { OrchardDomain , OrchardNoteEncryption } ,
202202 primitives:: redpallas:: { self , testing:: arb_valid_spendauth_keypair} ,
203203 value:: { NoteValue , ValueCommitTrapdoor , ValueCommitment } ,
204- Note ,
204+ Note , NoteVersion ,
205205 } ;
206206
207207 use super :: Action ;
@@ -228,10 +228,10 @@ pub(crate) mod testing {
228228
229229 prop_compose ! {
230230 /// Generate an action without authorization data.
231- pub fn arb_unauthorized_action( spend_value: NoteValue , output_value: NoteValue ) (
231+ pub fn arb_unauthorized_action( note_version : NoteVersion , spend_value: NoteValue , output_value: NoteValue ) (
232232 nf in arb_nullifier( ) ,
233233 ( _, rk) in arb_valid_spendauth_keypair( ) ,
234- note in arb_note( output_value) ,
234+ note in arb_note( output_value, note_version ) ,
235235 rng_seed in prop:: array:: uniform32( prop:: num:: u8 :: ANY ) ,
236236 ) -> Action <( ) > {
237237 let cmx = ExtractedNoteCommitment :: from( note. commitment( ) ) ;
@@ -254,10 +254,10 @@ pub(crate) mod testing {
254254
255255 prop_compose ! {
256256 /// Generate an action with invalid (random) authorization data.
257- pub fn arb_action( spend_value: NoteValue , output_value: NoteValue ) (
257+ pub fn arb_action( note_version : NoteVersion , spend_value: NoteValue , output_value: NoteValue ) (
258258 nf in arb_nullifier( ) ,
259259 ( rsk, rk) in arb_valid_spendauth_keypair( ) ,
260- note in arb_note( output_value) ,
260+ note in arb_note( output_value, note_version ) ,
261261 enc_rng_seed in prop:: array:: uniform32( prop:: num:: u8 :: ANY ) ,
262262 rng_seed in prop:: array:: uniform32( prop:: num:: u8 :: ANY ) ,
263263 fake_sighash in prop:: array:: uniform32( prop:: num:: u8 :: ANY ) ,
0 commit comments