@@ -2333,7 +2333,7 @@ mod tests {
2333
2333
let call =
2334
2334
RuntimeCall :: System ( frame_system:: Call :: remark { remark : b"Hello World" . to_vec ( ) } ) ;
2335
2335
let mut ext = MockExt :: default ( ) ;
2336
- let result = execute ( CODE_CALL_RUNTIME , call. encode ( ) , & mut ext) . unwrap ( ) ;
2336
+ let result = execute_with_unstable ( CODE_CALL_RUNTIME , call. encode ( ) , & mut ext) . unwrap ( ) ;
2337
2337
assert_eq ! ( * ext. runtime_calls. borrow( ) , vec![ call] ) ;
2338
2338
// 0 = ReturnCode::Success
2339
2339
assert_eq ! ( u32 :: from_le_bytes( result. data. try_into( ) . unwrap( ) ) , 0 ) ;
@@ -2342,7 +2342,7 @@ mod tests {
2342
2342
#[ test]
2343
2343
fn call_runtime_panics_on_invalid_call ( ) {
2344
2344
let mut ext = MockExt :: default ( ) ;
2345
- let result = execute ( CODE_CALL_RUNTIME , vec ! [ 0x42 ] , & mut ext) ;
2345
+ let result = execute_with_unstable ( CODE_CALL_RUNTIME , vec ! [ 0x42 ] , & mut ext) ;
2346
2346
assert_eq ! (
2347
2347
result,
2348
2348
Err ( ExecError {
@@ -2670,15 +2670,15 @@ mod tests {
2670
2670
2671
2671
// value does not exist -> error returned
2672
2672
let input = ( 63 , [ 1u8 ; 64 ] ) . encode ( ) ;
2673
- let result = execute ( CODE , input, & mut ext) . unwrap ( ) ;
2673
+ let result = execute_with_unstable ( CODE , input, & mut ext) . unwrap ( ) ;
2674
2674
assert_eq ! (
2675
2675
u32 :: from_le_bytes( result. data[ 0 ..4 ] . try_into( ) . unwrap( ) ) ,
2676
2676
ReturnCode :: KeyNotFound as u32
2677
2677
) ;
2678
2678
2679
2679
// value did exist -> value returned
2680
2680
let input = ( 64 , [ 1u8 ; 64 ] ) . encode ( ) ;
2681
- let result = execute ( CODE , input, & mut ext) . unwrap ( ) ;
2681
+ let result = execute_with_unstable ( CODE , input, & mut ext) . unwrap ( ) ;
2682
2682
assert_eq ! (
2683
2683
u32 :: from_le_bytes( result. data[ 0 ..4 ] . try_into( ) . unwrap( ) ) ,
2684
2684
ReturnCode :: Success as u32
@@ -2688,7 +2688,7 @@ mod tests {
2688
2688
2689
2689
// value did exist -> length returned (test for 0 sized)
2690
2690
let input = ( 19 , [ 2u8 ; 19 ] ) . encode ( ) ;
2691
- let result = execute ( CODE , input, & mut ext) . unwrap ( ) ;
2691
+ let result = execute_with_unstable ( CODE , input, & mut ext) . unwrap ( ) ;
2692
2692
assert_eq ! (
2693
2693
u32 :: from_le_bytes( result. data[ 0 ..4 ] . try_into( ) . unwrap( ) ) ,
2694
2694
ReturnCode :: Success as u32
@@ -2936,7 +2936,7 @@ mod tests {
2936
2936
"# ;
2937
2937
2938
2938
let mut mock_ext = MockExt :: default ( ) ;
2939
- execute ( CODE , vec ! [ ] , & mut mock_ext) . unwrap ( ) ;
2939
+ execute_with_unstable ( CODE , vec ! [ ] , & mut mock_ext) . unwrap ( ) ;
2940
2940
}
2941
2941
2942
2942
#[ test]
@@ -2968,7 +2968,7 @@ mod tests {
2968
2968
"# ;
2969
2969
2970
2970
let mut mock_ext = MockExt :: default ( ) ;
2971
- execute ( CODE , vec ! [ ] , & mut mock_ext) . unwrap ( ) ;
2971
+ execute_with_unstable ( CODE , vec ! [ ] , & mut mock_ext) . unwrap ( ) ;
2972
2972
}
2973
2973
2974
2974
/// This test check that an unstable interface cannot be deployed. In case of runtime
0 commit comments