From aa74dae70fa7df38809dad8a6be4283d1598793f Mon Sep 17 00:00:00 2001 From: Rostyslav Tyshko Date: Mon, 27 Jan 2025 13:42:27 +0100 Subject: [PATCH] add create_dummy_transaction for tests --- sequencer_core/src/lib.rs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/sequencer_core/src/lib.rs b/sequencer_core/src/lib.rs index 1a9690d..032304d 100644 --- a/sequencer_core/src/lib.rs +++ b/sequencer_core/src/lib.rs @@ -281,5 +281,26 @@ mod tests { } } + fn create_dummy_transaction( + hash: TreeHashType, + nullifier_created_hashes: Vec<[u8; 32]>, + utxo_commitments_spent_hashes: Vec<[u8; 32]>, + utxo_commitments_created_hashes: Vec<[u8; 32]>, + ) -> Transaction { + Transaction { + hash, + tx_kind: TxKind::Private, + execution_input: vec![], + execution_output: vec![], + utxo_commitments_spent_hashes, + utxo_commitments_created_hashes, + nullifier_created_hashes, + execution_proof_private: "dummy_proof".to_string(), + encoded_data: vec![], + ephemeral_pub_key: vec![10, 11, 12], + } + } + + } \ No newline at end of file