Skip to content

Commit e57155d

Browse files
committed
chore: One more format string fix missed by Clippy
1 parent 856542d commit e57155d

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

testnet/stacks-node/src/tests/nakamoto_integrations.rs

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10305,17 +10305,15 @@ fn clarity_cost_spend_down() {
1030510305
);
1030610306

1030710307
// Create an expensive contract that will be republished multiple times
10308+
let contract_call = format!(
10309+
"(unwrap! (contract-call? '{} submit-proposal '{} \"cost-old\" '{} \"cost-new\") (err 1))",
10310+
boot_code_id("cost-voting", false),
10311+
boot_code_id("costs", false),
10312+
boot_code_id("costs", false)
10313+
);
1030810314
let large_contract = format!(
1030910315
"(define-public (f) (begin {} (ok 1))) (begin (f))",
10310-
(0..250)
10311-
.map(|_| format!(
10312-
"(unwrap! (contract-call? '{} submit-proposal '{} \"cost-old\" '{} \"cost-new\") (err 1))",
10313-
boot_code_id("cost-voting", false),
10314-
boot_code_id("costs", false),
10315-
boot_code_id("costs", false),
10316-
))
10317-
.collect::<Vec<String>>()
10318-
.join(" ")
10316+
[contract_call.as_str(); 250].join(" ")
1031910317
);
1032010318

1032110319
// First, lets deploy the contract

0 commit comments

Comments
 (0)