File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
testnet/stacks-node/src/tests Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -10305,17 +10305,15 @@ fn clarity_cost_spend_down() {
10305
10305
) ;
10306
10306
10307
10307
// 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
+ ) ;
10308
10314
let large_contract = format ! (
10309
10315
"(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( " " )
10319
10317
) ;
10320
10318
10321
10319
// First, lets deploy the contract
You can’t perform that action at this time.
0 commit comments