Panic if no fee-payer found via Message::new() (#10050)

automerge
This commit is contained in:
Greg Fitzgerald
2020-05-15 13:23:09 -06:00
committed by GitHub
parent 7080fb9b37
commit 5e89bd8868
11 changed files with 39 additions and 30 deletions

View File

@ -169,7 +169,7 @@ mod tests {
assert_eq!(calculate_fee(&fee_calculator, &[]), 0);
// No signatures, no fee.
let message = Message::new(&[]);
let message = Message::default();
assert_eq!(calculate_fee(&fee_calculator, &[&message, &message]), 0);
// One message w/ one signature, a fee.