Skip to content

Commit

Permalink
burn mint capabilit.
Browse files Browse the repository at this point in the history
  • Loading branch information
l-monninger committed Mar 5, 2025
1 parent d533783 commit 870a1ac
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use maptos_framework_release_util::commit_hash_with_script;
commit_hash_with_script!(
BiarritzRc1, // Struct name
"https://github.com/movementlabsxyz/aptos-core.git", // Repository URL
"aa45303216be96ea30d361ab7eb2e95fb08c2dcb", // Commit hash
"d8306f3a42e26dafd9eb1139682645fe3f9e490b", // Commit hash
6, // Bytecode version
"biarritz-rc1.mrb", // MRB file name
"CACHE_BIARRITZ_RC1_FRAMEWORK_RELEASE" // Cache environment variable for Elsa
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use maptos_framework_release_util::mrb_release;
mrb_release!(
BiarritzRc1,
BIARRTIZ_RC1,
"aa45303216be96ea30d361ab7eb2e95fb08c2dcb-biarritz-rc1.mrb"
"d8306f3a42e26dafd9eb1139682645fe3f9e490b-biarritz-rc1.mrb"
);

generate_gas_upgrade_module!(gas_upgrade, BiarritzRc1, {
Expand All @@ -29,14 +29,20 @@ 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;
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 will burn the mint capability for the core signer
aptos_coin::burn_mint_capability(core_resources, signer::address_of(framework_signer));
}
}
"#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use maptos_framework_release_util::commit_hash_with_script;
commit_hash_with_script!(
BiarritzRc1, // Struct name
"https://github.com/movementlabsxyz/aptos-core.git", // Repository URL
"aa45303216be96ea30d361ab7eb2e95fb08c2dcb", // Commit hash
"d8306f3a42e26dafd9eb1139682645fe3f9e490b", // Commit hash
6, // Bytecode version
"biarritz-rc1.mrb", // MRB file name
"CACHE_BIARRITZ_RC1_FRAMEWORK_RELEASE" // Cache environment variable for Elsa
Expand Down

0 comments on commit 870a1ac

Please sign in to comment.