@@ -343,7 +343,6 @@ pub async fn generate_default_deployment(
343343
344344 // Load all the requirements
345345 // Some requirements are explicitly listed, some are discovered as we compute the ASTs.
346-
347346 for requirement in requirements. iter ( ) {
348347 let contract_id = match QualifiedContractIdentifier :: parse ( & requirement. contract_id ) {
349348 Ok ( contract_id) => contract_id,
@@ -379,6 +378,7 @@ pub async fn generate_default_deployment(
379378 & file_accessor,
380379 )
381380 . await ?;
381+ contract_epochs. insert ( contract_id. clone ( ) , epoch. clone ( ) ) ;
382382
383383 // Build the struct representing the requirement in the deployment
384384 if network. is_simnet ( ) {
@@ -418,15 +418,14 @@ pub async fn generate_default_deployment(
418418 clarity_version,
419419 } ;
420420 requirements_publish. insert ( contract_id. clone ( ) , data) ;
421- contract_epochs. insert ( contract_id. clone ( ) , epoch) ;
422421 }
423422
424423 // Compute the AST
425424 let contract = ClarityContract {
426425 code_source : ClarityCodeSource :: ContractInMemory ( source) ,
427426 name : contract_id. name . to_string ( ) ,
428427 deployer : ContractDeployer :: ContractIdentifier ( contract_id. clone ( ) ) ,
429- clarity_version : clarity_version ,
428+ clarity_version,
430429 epoch : forced_epoch. unwrap_or ( epoch) ,
431430 } ;
432431 let ( ast, _, _) = session. interpreter . build_ast ( & contract) ;
0 commit comments