From a50249c2ca27dfdd9f235db7196d584ac97880ea Mon Sep 17 00:00:00 2001 From: Omar Date: Fri, 25 Oct 2024 17:53:16 +0300 Subject: [PATCH] Account behavior changes are no longer reserved --- .../src/transaction_v1/manifest.rs | 7 ------- .../traverser/auxiliary/reserved_instructions.rs | 13 ------------- .../src/transaction_types/types.rs | 1 - 3 files changed, 21 deletions(-) diff --git a/crates/radix-engine-toolkit-uniffi/src/transaction_v1/manifest.rs b/crates/radix-engine-toolkit-uniffi/src/transaction_v1/manifest.rs index 79229184..5fc2d768 100644 --- a/crates/radix-engine-toolkit-uniffi/src/transaction_v1/manifest.rs +++ b/crates/radix-engine-toolkit-uniffi/src/transaction_v1/manifest.rs @@ -347,7 +347,6 @@ pub enum ReservedInstruction { AccountLockFee, AccountSecurify, IdentitySecurify, - AccountUpdateSettings, AccessControllerMethod, } @@ -360,9 +359,6 @@ impl From for CoreReservedInstruction { ReservedInstruction::AccountLockFee => Self::AccountLockFee, ReservedInstruction::AccountSecurify => Self::AccountSecurify, ReservedInstruction::IdentitySecurify => Self::IdentitySecurify, - ReservedInstruction::AccountUpdateSettings => { - Self::AccountUpdateSettings - } } } } @@ -376,9 +372,6 @@ impl From for ReservedInstruction { CoreReservedInstruction::AccountLockFee => Self::AccountLockFee, CoreReservedInstruction::AccountSecurify => Self::AccountSecurify, CoreReservedInstruction::IdentitySecurify => Self::IdentitySecurify, - CoreReservedInstruction::AccountUpdateSettings => { - Self::AccountUpdateSettings - } } } } diff --git a/crates/radix-engine-toolkit/src/transaction_types/traverser/auxiliary/reserved_instructions.rs b/crates/radix-engine-toolkit/src/transaction_types/traverser/auxiliary/reserved_instructions.rs index 89656513..8494b75d 100644 --- a/crates/radix-engine-toolkit/src/transaction_types/traverser/auxiliary/reserved_instructions.rs +++ b/crates/radix-engine-toolkit/src/transaction_types/traverser/auxiliary/reserved_instructions.rs @@ -66,19 +66,6 @@ impl StaticAnalysisCallback for ReservedInstructionsDetector { { self.reserved_instructions .insert(ReservedInstruction::AccountLockFee); - } else if is_account(address) - && contains!( - method_name => [ - ACCOUNT_ADD_AUTHORIZED_DEPOSITOR_IDENT, - ACCOUNT_REMOVE_AUTHORIZED_DEPOSITOR_IDENT, - ACCOUNT_SET_RESOURCE_PREFERENCE_IDENT, - ACCOUNT_REMOVE_RESOURCE_PREFERENCE_IDENT, - ACCOUNT_SET_DEFAULT_DEPOSIT_RULE_IDENT, - ] - ) - { - self.reserved_instructions - .insert(ReservedInstruction::AccountUpdateSettings); } else if is_access_controller(address) { self.reserved_instructions .insert(ReservedInstruction::AccessControllerMethod); diff --git a/crates/radix-engine-toolkit/src/transaction_types/types.rs b/crates/radix-engine-toolkit/src/transaction_types/types.rs index 01a0e188..6e5ff6e9 100644 --- a/crates/radix-engine-toolkit/src/transaction_types/types.rs +++ b/crates/radix-engine-toolkit/src/transaction_types/types.rs @@ -455,7 +455,6 @@ pub enum ReservedInstruction { AccountLockFee, AccountSecurify, IdentitySecurify, - AccountUpdateSettings, AccessControllerMethod, }