@@ -9,7 +9,7 @@ mod LegacyBridgeTester {
99 use starknet :: {ContractAddress , syscalls :: library_call_syscall, get_block_timestamp};
1010 use super :: super :: replaceability_interface :: {
1111 ImplementationData , IReplaceable , IReplaceableDispatcher , IReplaceableDispatcherTrait ,
12- IEICInitializable , EIC_INITIALIZE_SELECTOR , IMPLEMENTATION_EXPIRATION
12+ IEICInitializable , EIC_INITIALIZE_SELECTOR , IMPLEMENTATION_EXPIRATION ,
1313 };
1414
1515 #[storage]
@@ -19,9 +19,9 @@ mod LegacyBridgeTester {
1919 // Delay in seconds before performing an upgrade.
2020 upgrade_delay : u64 ,
2121 // Timestamp by which implementation can be activated.
22- impl_activation_time : LegacyMap <felt252 , u64 >,
22+ impl_activation_time : starknet :: storage :: Map <felt252 , u64 >,
2323 // Timestamp until which implementation can be activated.
24- impl_expiration_time : LegacyMap <felt252 , u64 >,
24+ impl_expiration_time : starknet :: storage :: Map <felt252 , u64 >,
2525 // Is the implementation finalized.
2626 finalized : bool ,
2727 }
@@ -49,15 +49,15 @@ mod LegacyBridgeTester {
4949
5050 // Returns the implementation activation time.
5151 fn get_impl_activation_time (
52- self : @ ContractState , implementation_data : ImplementationData
52+ self : @ ContractState , implementation_data : ImplementationData ,
5353 ) -> u64 {
5454 let impl_key = calc_impl_key (: implementation_data );
5555 self . impl_activation_time. read (impl_key )
5656 }
5757
5858 // Adds a new implementation.
5959 fn add_new_implementation (
60- ref self : ContractState , implementation_data : ImplementationData
60+ ref self : ContractState , implementation_data : ImplementationData ,
6161 ) {
6262 // The call is restricted to the upgrade governor.
6363 self . only_upgrade_governor ();
@@ -119,7 +119,7 @@ mod LegacyBridgeTester {
119119 let mut res = library_call_syscall (
120120 class_hash : eic_data . eic_hash,
121121 function_selector : EIC_INITIALIZE_SELECTOR ,
122- calldata : calldata_wrapper . span ()
122+ calldata : calldata_wrapper . span (),
123123 );
124124 if (! res . is_ok ()) {
125125 let mut err = res . unwrap_err ();
@@ -128,7 +128,7 @@ mod LegacyBridgeTester {
128128 assert (false , err_msg );
129129 }
130130 },
131- Option :: None (()) => {}
131+ Option :: None (()) => {},
132132 };
133133
134134 // Replace the class hash.
@@ -155,21 +155,21 @@ mod LegacyBridgeTester {
155155
156156
157157 fn set_impl_activation_time (
158- ref self : ContractState , implementation_data : ImplementationData , activation_time : u64
158+ ref self : ContractState , implementation_data : ImplementationData , activation_time : u64 ,
159159 ) {
160160 let impl_key = calc_impl_key (: implementation_data );
161161 self . impl_activation_time. write (impl_key , activation_time );
162162 }
163163
164164 fn get_impl_expiration_time (
165- self : @ ContractState , implementation_data : ImplementationData
165+ self : @ ContractState , implementation_data : ImplementationData ,
166166 ) -> u64 {
167167 let impl_key = calc_impl_key (: implementation_data );
168168 self . impl_expiration_time. read (impl_key )
169169 }
170170
171171 fn set_impl_expiration_time (
172- ref self : ContractState , implementation_data : ImplementationData , expiration_time : u64
172+ ref self : ContractState , implementation_data : ImplementationData , expiration_time : u64 ,
173173 ) {
174174 let impl_key = calc_impl_key (: implementation_data );
175175 self . impl_expiration_time. write (impl_key , expiration_time );
0 commit comments