Skip to content

Commit b41dfc6

Browse files
committed
fix: script name.
1 parent d0843d7 commit b41dfc6

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

aptos-move/aptos-release-builder/src/components/framework.rs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ use aptos_temppath::TempPath;
88
use aptos_types::account_address::AccountAddress;
99
use git2::Repository;
1010
use serde::{Deserialize, Serialize};
11+
use std::path::PathBuf;
1112

1213
#[derive(Serialize, Deserialize, Clone, Eq, PartialEq, Debug)]
1314
pub struct FrameworkReleaseConfig {
@@ -42,7 +43,7 @@ pub fn generate_upgrade_proposals_with_repo(
4243
repo_str,
4344
)?;
4445

45-
for (account, release, move_script_path) in release_packages.iter() {
46+
for (account, release, move_script_path, script_name) in release_packages.iter() {
4647
// If we're generating a single-step proposal on testnet
4748
if is_testnet && next_execution_hash.is_empty() {
4849
release.generate_script_proposal_testnet(account, move_script_path.clone())?;
@@ -81,7 +82,10 @@ pub fn generate_upgrade_proposals_release_packages_with_repo(
8182
is_testnet: bool,
8283
next_execution_hash: Vec<u8>,
8384
repo_str: &str,
84-
) -> Result<(String, Vec<(AccountAddress, ReleasePackage, PathBuf)>)> {
85+
) -> Result<(
86+
String,
87+
Vec<(AccountAddress, ReleasePackage, PathBuf, String)>,
88+
)> {
8589
let mut package_path_list = [
8690
("0x1", "aptos-move/framework/move-stdlib"),
8791
("0x1", "aptos-move/framework/aptos-stdlib"),
@@ -157,7 +161,12 @@ pub fn generate_upgrade_proposals_release_packages_with_repo(
157161
..BuildOptions::default()
158162
};
159163
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+
));
161170
}
162171

163172
Ok((commit_info, result))

0 commit comments

Comments
 (0)