Skip to content

Commit

Permalink
chore: One more format string fix missed by Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jbencin committed Jan 17, 2025
1 parent 856542d commit e57155d
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions testnet/stacks-node/src/tests/nakamoto_integrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10305,17 +10305,15 @@ fn clarity_cost_spend_down() {
);

// Create an expensive contract that will be republished multiple times
let contract_call = format!(
"(unwrap! (contract-call? '{} submit-proposal '{} \"cost-old\" '{} \"cost-new\") (err 1))",
boot_code_id("cost-voting", false),
boot_code_id("costs", false),
boot_code_id("costs", false)
);
let large_contract = format!(
"(define-public (f) (begin {} (ok 1))) (begin (f))",
(0..250)
.map(|_| format!(
"(unwrap! (contract-call? '{} submit-proposal '{} \"cost-old\" '{} \"cost-new\") (err 1))",
boot_code_id("cost-voting", false),
boot_code_id("costs", false),
boot_code_id("costs", false),
))
.collect::<Vec<String>>()
.join(" ")
[contract_call.as_str(); 250].join(" ")
);

// First, lets deploy the contract
Expand Down

0 comments on commit e57155d

Please sign in to comment.