Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Nov 9, 2024
1 parent 2f9a285 commit f3e463c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/subcommand/wallet/mint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@ impl Mint {
let script_pubkey = runestone.encipher();

ensure!(
script_pubkey.len() <= 82,
"runestone greater than maximum OP_RETURN size: {} > 82",
script_pubkey.len()
script_pubkey.len() <= MAX_STANDARD_OP_RETURN_SIZE,
"runestone greater than maximum OP_RETURN size: {} > {}",
script_pubkey.len(),
MAX_STANDARD_OP_RETURN_SIZE,
);

let unfunded_transaction = Transaction {
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/batch/plan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ impl Plan {

ensure!(
self.no_limit || script_pubkey.len() <= MAX_STANDARD_OP_RETURN_SIZE,
"runestone greater than maximum OP_RETURN size: {} > {} ",
"runestone greater than maximum OP_RETURN size: {} > {}",
script_pubkey.len(),
MAX_STANDARD_OP_RETURN_SIZE,
);
Expand Down

0 comments on commit f3e463c

Please sign in to comment.