File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
magicblock-chainlink/src/testing Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -317,6 +317,7 @@ macro_rules! assert_loaded_program_with_size {
317317 $loader,
318318 $loader_status
319319 ) ;
320+ let actual_size = loaded_program. program_data. len( ) ;
320321 let ( min, max) = $crate:: min_max_with_deviation_percent( $size, 5.0 ) ;
321322 assert!(
322323 actual_size >= min && actual_size <= max,
@@ -332,8 +333,7 @@ macro_rules! assert_loaded_program_with_size {
332333#[ macro_export]
333334macro_rules! assert_data_has_size {
334335 ( $data: expr, $size: expr) => { {
335- // Program size may vary a bit
336- // especially across differnt solana versions + OSes
336+ let actual_size = $data. len( ) ;
337337 let ( min, max) = $crate:: min_max_with_deviation_percent( $size, 5.0 ) ;
338338 assert!(
339339 actual_size >= min && actual_size <= max,
You can’t perform that action at this time.
0 commit comments