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

@@ -183,7 +183,7 @@ mod tests {
#[test]
fn test_fee_calculator_calculate_fee() {
// Default: no fee.
let message = Message::new(&[]);
let message = Message::default();
assert_eq!(FeeCalculator::default().calculate_fee(&message), 0);
// No signature, no fee.