diff --git a/src/governor.cairo b/src/governor.cairo index aa46367..099a7bf 100644 --- a/src/governor.cairo +++ b/src/governor.cairo @@ -94,9 +94,6 @@ pub trait IGovernor { // Sends a message to L1 via syscall fn send_message_to_l1(self: @TContractState, to_address: EthAddress, payload: Span); - - // Migrates to the latest version of storage layout, from the version of storage before v2.1.0 - fn _migrate_old_config_storage(ref self: TContractState); } #[starknet::contract(account)] @@ -469,29 +466,6 @@ pub mod Governor { send_message_to_l1_syscall(to_address.into(), payload).expect('SYSCALL_FAILED') } - - fn _migrate_old_config_storage(ref self: ContractState) { - let old_config_storage_address = storage_base_address_from_felt252(selector!("config")); - let old_config: Config = Store::read(0, old_config_storage_address).unwrap(); - // voting period of 0 is assumed to be invalid - assert(old_config.voting_period.is_non_zero(), 'NO_OLD_CONFIG'); - self.config_versions.write(0, old_config); - self.emit(Reconfigured { version: 0, new_config: old_config }); - Store::write( - 0, - old_config_storage_address, - Config { - voting_start_delay: 0, - voting_period: 0, - voting_weight_smoothing_duration: 0, - quorum: 0, - proposal_creation_threshold: 0, - execution_delay: 0, - execution_window: 0, - }, - ) - .expect('FAILED_TO_DELETE'); - } } // This implementation exists solely for the purpose of allowing simulation of calls from the