mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-08-27 04:11:08 +00:00
test(lee): use expect in the emitter test helper
This commit is contained in:
@@ -7,7 +7,7 @@ fn program_transaction<T: serde::Serialize>(
|
||||
) -> PublicTransaction {
|
||||
let message =
|
||||
public_transaction::Message::try_new(program_id, vec![account_id], vec![], instruction)
|
||||
.unwrap();
|
||||
.expect("test instruction must serialize");
|
||||
let witness_set = public_transaction::WitnessSet::for_message(&message, &[]);
|
||||
PublicTransaction::new(message, witness_set)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user