File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1- // #![cfg(feature = "test-sbf")]
1+ #![ cfg( feature = "test-sbf" ) ]
22
33use {
44 bincode:: serialized_size,
@@ -44,10 +44,9 @@ fn setup() -> Mollusk {
4444fn get_config_space ( key_len : usize ) -> usize {
4545 let entry_size = bincode:: serialized_size ( & ( Pubkey :: default ( ) , true ) ) . unwrap ( ) as usize ;
4646 let total_keys_size = ( key_len) . checked_mul ( entry_size) . unwrap ( ) ;
47- bincode:: serialized_size ( & ( ConfigKeys :: default ( ) , MyConfig :: default ( ) ) )
48- . ok ( )
49- . and_then ( |s| s. checked_add ( total_keys_size as u64 ) )
50- . unwrap ( ) as usize
47+ let serialized_size =
48+ bincode:: serialized_size ( & ( ConfigKeys :: default ( ) , MyConfig :: default ( ) ) ) . unwrap ( ) as usize ;
49+ serialized_size. checked_add ( total_keys_size) . unwrap ( )
5150}
5251
5352fn create_config_account ( mollusk : & Mollusk , keys : Vec < ( Pubkey , bool ) > ) -> AccountSharedData {
You can’t perform that action at this time.
0 commit comments