Skip to content

Commit

Permalink
fix: upgrade script
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmovses committed Mar 8, 2025
1 parent 85377ac commit 0e7a3fe
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
use aptos_framework_upgrade_gas_release::generate_gas_upgrade_module;
use maptos_framework_release_util::mrb_release;

mrb_release!(BiarritzRc1, BIARRTIZ_RC1, "4c91658da5329df8c55c8caca9cf47ac9d685ddd");
mrb_release!(
BiarritzRc1,
BIARRTIZ_RC1,
"4c91658da5329df8c55c8caca9cf47ac9d685ddd-biarritz-rc1.mrb"
);

generate_gas_upgrade_module!(gas_upgrade, BiarritzRc1, {
let mut gas_parameters = AptosGasParameters::initial();
Expand All @@ -24,22 +28,21 @@ pub mod script {
script {
use aptos_framework::aptos_governance;
use aptos_framework::gas_schedule;
use aptos_framework::governed_gas_pool;
use aptos_framework::aptos_coin;
use aptos_framework::signer;
use aptos_framework::governed_gas_pool;
use aptos_framework::aptos_coin;
use aptos_framework::signer;
fun main(core_resources: &signer) {
let core_signer = aptos_governance::get_signer_testnet_only(core_resources, @0x1);
let framework_signer = &core_signer;
// this will throw an error against already upgraded networks, internally you can make it idempotent
governed_gas_pool::initialize(framework_signer, b"aptos_framework::governed_gas_pool");
// this initialize function is idempotent, already initialized GGP will not error.
governed_gas_pool::initialize(framework_signer, b"aptos_framework::governed_gas_pool");
// this will burn the mint capability for the core signer
aptos_coin::burn_mint_capability(core_resources, signer::address_of(framework_signer));
}
// this will burn the mint capability for the core signer
aptos_coin::destroy_mint_capability_from(core_signer, signer::address_of(framework_signer));
}
}
"#
.to_string()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ impl Compiler {
with_abis: false,
with_source_maps: false,
with_error_map: false,
skip_fetch_latest_git_deps: true,
skip_fetch_latest_git_deps: false,
bytecode_version,
..BuildOptions::default()
};
Expand Down

0 comments on commit 0e7a3fe

Please sign in to comment.