Skip to content

Commit

Permalink
add proventransaction cast in test
Browse files Browse the repository at this point in the history
  • Loading branch information
SantiagoPittella committed Sep 23, 2024
1 parent c122655 commit 1848111
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/tx-prover/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down Expand Up @@ -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");
}
}

0 comments on commit 1848111

Please sign in to comment.