Skip to content

Commit c134547

Browse files
committed
Merge remote-tracking branch 'origin/andygolay/destroy-account' into andygolay/is-core-resource-false
2 parents 4b2d30a + f8f6fb5 commit c134547

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ pub enum FeatureFlag {
122122
LimitVMTypeSize,
123123
AbortIfMultisigPayloadMismatch,
124124
GovernedGasPool,
125+
DecommissionCoreResources,
125126
}
126127

127128
fn generate_features_blob(writer: &CodeWriter, data: &[u64]) {
@@ -332,6 +333,7 @@ impl From<FeatureFlag> for AptosFeatureFlag {
332333
AptosFeatureFlag::ABORT_IF_MULTISIG_PAYLOAD_MISMATCH
333334
},
334335
FeatureFlag::GovernedGasPool => AptosFeatureFlag::GOVERNED_GAS_POOL,
336+
FeatureFlag::DecommissionCoreResources => AptosFeatureFlag::DECOMMISSION_CORE_RESOURCES,
335337
}
336338
}
337339
}
@@ -457,6 +459,7 @@ impl From<AptosFeatureFlag> for FeatureFlag {
457459
FeatureFlag::AbortIfMultisigPayloadMismatch
458460
},
459461
AptosFeatureFlag::GOVERNED_GAS_POOL => FeatureFlag::GovernedGasPool,
462+
AptosFeatureFlag::DECOMMISSION_CORE_RESOURCES => FeatureFlag::DecommissionCoreResources,
460463
}
461464
}
462465
}

aptos-move/framework/aptos-framework/doc/account.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ Used to destroy the core resources account on mainnet.
10561056

10571057

10581058
<pre><code><b>public</b> entry <b>fun</b> <a href="account.md#0x1_account_destroy_account_from">destroy_account_from</a>(<a href="account.md#0x1_account">account</a>: &<a href="../../aptos-stdlib/../move-stdlib/doc/signer.md#0x1_signer">signer</a>, from: <b>address</b>) <b>acquires</b> <a href="account.md#0x1_account_Account">Account</a> {
1059-
<a href="system_addresses.md#0x1_system_addresses_assert_aptos_framework">system_addresses::assert_aptos_framework</a>(<a href="account.md#0x1_account">account</a>);
1059+
<a href="system_addresses.md#0x1_system_addresses_assert_core_resource">system_addresses::assert_core_resource</a>(<a href="account.md#0x1_account">account</a>);
10601060

10611061
// Assert that the feature flag for decommissioning core resources is enabled
10621062
<b>assert</b>!(

types/src/on_chain_config/aptos_features.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ pub enum FeatureFlag {
8787
LIMIT_VM_TYPE_SIZE = 69,
8888
ABORT_IF_MULTISIG_PAYLOAD_MISMATCH = 70,
8989
GOVERNED_GAS_POOL = 73,
90+
DECOMMISSION_CORE_RESOURCES = 222,
9091
}
9192

9293
impl FeatureFlag {

0 commit comments

Comments
 (0)