Unit Testing Transaction
let mut tx_tester = tx_parser.to_tester();Interpret result
assert!(tx_tester.success()); // passing
let error_msg = tx_tester.errors();
println!(error_msg) // "No errors"println!("Errors: {:?}", tx_tester.errors());
// For example, failing at finding inline datum at outputs
Errors: "[Error - outputs_inline_datum_exist]: No outputs with inline datum matching: d905039fd8799fd8799f5041bfc7325343428683bbd0b94a4da41cd8799f581ce1197f10e85bc4a3a812e34e22339e1df56b7fb6386a9510d7a304ffffd8799f581c7c87b6b5a0963af3eadb107da2ac4e1d34747a4df363858b649aa845ffffffa140a1401a00989680ff"Testing inputs
Testing outputs
Testing mints
Testing time
Testing signature
Last updated