From 18481112a18824d2c35936fddfb1dd3beed5d369 Mon Sep 17 00:00:00 2001 From: SantiagoPittella Date: Mon, 23 Sep 2024 10:14:12 -0300 Subject: [PATCH] add proventransaction cast in test --- bin/tx-prover/src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/tx-prover/src/main.rs b/bin/tx-prover/src/main.rs index 0b35d26bd..9675bd1c9 100644 --- a/bin/tx-prover/src/main.rs +++ b/bin/tx-prover/src/main.rs @@ -40,7 +40,7 @@ mod test { assets::{Asset, FungibleAsset}, notes::NoteType, testing::account_code::DEFAULT_AUTH_SCRIPT, - transaction::{TransactionScript, TransactionWitness}, + transaction::{ProvenTransaction, TransactionScript, TransactionWitness}, }; use miden_tx::{ testing::mock_chain::{Auth, MockChain}, @@ -119,5 +119,9 @@ mod test { // Check the response assert!(!response.get_ref().proven_transaction.is_empty(), "Proof generation failed"); + + // Cast into a ProvenTransaction + let _proven_transaction: ProvenTransaction = + response.into_inner().try_into().expect("Failed to convert response"); } }