Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"title": "Proposal to enable trusted code (see also AIP 134)",
"description": "See https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-134.md",
"source_code_url": "https://github.com/aptos-labs/aptos-core",
"discussion_url": "https://github.com/aptos-labs/aptos-core"
}
24 changes: 24 additions & 0 deletions sources/v1.37/enable_trusted_code/0-features.move
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Script hash: 2c1f1a8a
// Modifying on-chain feature flags:
// Enabled Features: [EnableTrustedCode]
// Disabled Features: []
//
script {
use aptos_framework::aptos_governance;
use std::features;

fun main(proposal_id: u64) {
let framework_signer = aptos_governance::resolve_multi_step_proposal(proposal_id, @0x1, x"");

let enabled_blob: vector<u64> = vector[
100,
];

let disabled_blob: vector<u64> = vector[

];

features::change_feature_flags_for_next_epoch(&framework_signer, enabled_blob, disabled_blob);
aptos_governance::reconfigure(&framework_signer);
}
}