diff --git a/frame/contracts/src/wasm/mod.rs b/frame/contracts/src/wasm/mod.rs index add256a0ba840..0fa28488c0417 100644 --- a/frame/contracts/src/wasm/mod.rs +++ b/frame/contracts/src/wasm/mod.rs @@ -2333,7 +2333,7 @@ mod tests { let call = RuntimeCall::System(frame_system::Call::remark { remark: b"Hello World".to_vec() }); let mut ext = MockExt::default(); - let result = execute(CODE_CALL_RUNTIME, call.encode(), &mut ext).unwrap(); + let result = execute_with_unstable(CODE_CALL_RUNTIME, call.encode(), &mut ext).unwrap(); assert_eq!(*ext.runtime_calls.borrow(), vec![call]); // 0 = ReturnCode::Success assert_eq!(u32::from_le_bytes(result.data.try_into().unwrap()), 0); @@ -2342,7 +2342,7 @@ mod tests { #[test] fn call_runtime_panics_on_invalid_call() { let mut ext = MockExt::default(); - let result = execute(CODE_CALL_RUNTIME, vec![0x42], &mut ext); + let result = execute_with_unstable(CODE_CALL_RUNTIME, vec![0x42], &mut ext); assert_eq!( result, Err(ExecError { @@ -2670,7 +2670,7 @@ mod tests { // value does not exist -> error returned let input = (63, [1u8; 64]).encode(); - let result = execute(CODE, input, &mut ext).unwrap(); + let result = execute_with_unstable(CODE, input, &mut ext).unwrap(); assert_eq!( u32::from_le_bytes(result.data[0..4].try_into().unwrap()), ReturnCode::KeyNotFound as u32 @@ -2678,7 +2678,7 @@ mod tests { // value did exist -> value returned let input = (64, [1u8; 64]).encode(); - let result = execute(CODE, input, &mut ext).unwrap(); + let result = execute_with_unstable(CODE, input, &mut ext).unwrap(); assert_eq!( u32::from_le_bytes(result.data[0..4].try_into().unwrap()), ReturnCode::Success as u32 @@ -2688,7 +2688,7 @@ mod tests { // value did exist -> length returned (test for 0 sized) let input = (19, [2u8; 19]).encode(); - let result = execute(CODE, input, &mut ext).unwrap(); + let result = execute_with_unstable(CODE, input, &mut ext).unwrap(); assert_eq!( u32::from_le_bytes(result.data[0..4].try_into().unwrap()), ReturnCode::Success as u32 @@ -2936,7 +2936,7 @@ mod tests { "#; let mut mock_ext = MockExt::default(); - execute(CODE, vec![], &mut mock_ext).unwrap(); + execute_with_unstable(CODE, vec![], &mut mock_ext).unwrap(); } #[test] @@ -2968,7 +2968,7 @@ mod tests { "#; let mut mock_ext = MockExt::default(); - execute(CODE, vec![], &mut mock_ext).unwrap(); + execute_with_unstable(CODE, vec![], &mut mock_ext).unwrap(); } /// This test check that an unstable interface cannot be deployed. In case of runtime