@@ -667,33 +667,40 @@ fn pox_2_contract_caller_units() {
667
667
668
668
let expected_unlock_height = POX_TESTNET_CYCLE_LENGTH * 4 ;
669
669
670
+ let mut store = MemoryBackingStore :: new ( ) ;
671
+ let mut analysis_db = store. as_analysis_db ( ) ;
672
+ analysis_db. begin ( ) ;
673
+
670
674
// execute past 2.1 epoch initialization
671
675
sim. execute_next_block ( |_env| { } ) ;
672
676
sim. execute_next_block ( |_env| { } ) ;
673
677
sim. execute_next_block ( |_env| { } ) ;
674
678
675
679
sim. execute_next_block ( |env| {
676
- env. initialize_versioned_contract (
680
+ env. initialize_versioned_contract_with_db (
677
681
POX_2_CONTRACT_TESTNET . clone ( ) ,
678
682
ClarityVersion :: Clarity2 ,
679
683
& POX_2_TESTNET_CODE ,
680
684
None ,
681
685
ASTRules :: PrecheckSize ,
686
+ & mut analysis_db,
682
687
)
683
688
. unwrap ( )
684
689
} ) ;
685
690
686
691
let cc = boot_code_id ( "stack-through" , false ) ;
687
692
688
693
sim. execute_next_block ( |env| {
689
- env. initialize_contract ( cc. clone ( ) ,
694
+ env. initialize_contract_with_db ( cc. clone ( ) ,
690
695
"(define-public (cc-stack-stx (amount-ustx uint)
691
696
(pox-addr (tuple (version (buff 1)) (hashbytes (buff 32))))
692
697
(start-burn-ht uint)
693
698
(lock-period uint))
694
699
(contract-call? .pox-2 stack-stx amount-ustx pox-addr start-burn-ht lock-period))" ,
695
- None ,
696
- ASTRules :: PrecheckSize )
700
+ None ,
701
+ ASTRules :: PrecheckSize ,
702
+ & mut analysis_db,
703
+ )
697
704
. unwrap ( ) ;
698
705
699
706
let burn_height = env. eval_raw ( "burn-block-height" ) . unwrap ( ) . 0 ;
0 commit comments