Skip to content

Commit

Permalink
Make invariant message more concise (#3029)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqiangxu authored Jan 31, 2024
1 parent d829fd2 commit 20167a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/subcommand/wallet/inscribe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -959,9 +959,7 @@ inscriptions:
}

#[test]
#[should_panic(
expected = "invariant: destination addresses and number of inscriptions doesn't match"
)]
#[should_panic(expected = "invariant: shared-output has only one destination")]
fn batch_inscribe_with_inconsistent_reveal_addresses_panics() {
let utxos = vec![
(outpoint(1), Amount::from_sat(10_000)),
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/inscribe/batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ impl Batch {
Mode::SharedOutput => assert_eq!(
self.destinations.len(),
1,
"invariant: destination addresses and number of inscriptions doesn't match"
"invariant: shared-output has only one destination"
),
}

Expand Down

0 comments on commit 20167a4

Please sign in to comment.