Skip to content

Commit

Permalink
Forbid destinations in same-sat mode (ordinals#3038)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqiangxu authored Jan 25, 2024
1 parent 28f9509 commit ffe1c8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/wallet/inscribe/batch_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ impl Batchfile {
.inscriptions
.iter()
.any(|entry| entry.destination.is_some())
&& self.mode == Mode::SharedOutput
&& (self.mode == Mode::SharedOutput || self.mode == Mode::SameSat)
{
return Err(anyhow!(
"individual inscription destinations cannot be set in shared-output mode"
"individual inscription destinations cannot be set in shared-output or same-sat mode"
));
}

Expand Down
2 changes: 1 addition & 1 deletion tests/wallet/inscribe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1517,7 +1517,7 @@ fn batch_inscribe_fails_with_shared_output_and_destination_set() {
.bitcoin_rpc_server(&bitcoin_rpc_server)
.ord_rpc_server(&ord_rpc_server)
.expected_exit_code(1)
.stderr_regex("error: individual inscription destinations cannot be set in shared-output mode\n")
.stderr_regex("error: individual inscription destinations cannot be set in shared-output or same-sat mode\n")
.run_and_extract_stdout();
}

Expand Down

0 comments on commit ffe1c8b

Please sign in to comment.