@@ -8,6 +8,7 @@ use aptos_temppath::TempPath;
8
8
use aptos_types:: account_address:: AccountAddress ;
9
9
use git2:: Repository ;
10
10
use serde:: { Deserialize , Serialize } ;
11
+ use std:: path:: PathBuf ;
11
12
12
13
#[ derive( Serialize , Deserialize , Clone , Eq , PartialEq , Debug ) ]
13
14
pub struct FrameworkReleaseConfig {
@@ -42,7 +43,7 @@ pub fn generate_upgrade_proposals_with_repo(
42
43
repo_str,
43
44
) ?;
44
45
45
- for ( account, release, move_script_path) in release_packages. iter ( ) {
46
+ for ( account, release, move_script_path, script_name ) in release_packages. iter ( ) {
46
47
// If we're generating a single-step proposal on testnet
47
48
if is_testnet && next_execution_hash. is_empty ( ) {
48
49
release. generate_script_proposal_testnet ( account, move_script_path. clone ( ) ) ?;
@@ -81,7 +82,10 @@ pub fn generate_upgrade_proposals_release_packages_with_repo(
81
82
is_testnet : bool ,
82
83
next_execution_hash : Vec < u8 > ,
83
84
repo_str : & str ,
84
- ) -> Result < ( String , Vec < ( AccountAddress , ReleasePackage , PathBuf ) > ) > {
85
+ ) -> Result < (
86
+ String ,
87
+ Vec < ( AccountAddress , ReleasePackage , PathBuf , String ) > ,
88
+ ) > {
85
89
let mut package_path_list = [
86
90
( "0x1" , "aptos-move/framework/move-stdlib" ) ,
87
91
( "0x1" , "aptos-move/framework/aptos-stdlib" ) ,
@@ -157,7 +161,12 @@ pub fn generate_upgrade_proposals_release_packages_with_repo(
157
161
..BuildOptions :: default ( )
158
162
} ;
159
163
let package = BuiltPackage :: build ( package_path, options) ?;
160
- result. push ( ( account, ReleasePackage :: new ( package) , move_script_path) ) ;
164
+ result. push ( (
165
+ account,
166
+ ReleasePackage :: new ( package) ,
167
+ move_script_path,
168
+ script_name,
169
+ ) ) ;
161
170
}
162
171
163
172
Ok ( ( commit_info, result) )
0 commit comments