diff --git a/fuel-vm/src/interpreter/blockchain/code_tests.rs b/fuel-vm/src/interpreter/blockchain/code_tests.rs
index 731f0fe51a..c4ff590123 100644
--- a/fuel-vm/src/interpreter/blockchain/code_tests.rs
+++ b/fuel-vm/src/interpreter/blockchain/code_tests.rs
@@ -1,17 +1,19 @@
#![allow(clippy::cast_possible_truncation)]
-use core::convert::Infallible;
use alloc::vec;
use super::*;
use crate::{
interpreter::PanicContext,
- storage::MemoryStorage,
+ storage::{
+ MemoryStorage,
+ MemoryStorageError,
+ },
};
use fuel_tx::Contract;
#[test]
-fn test_load_contract_in_script() -> IoResult<(), Infallible> {
+fn test_load_contract_in_script() -> IoResult<(), MemoryStorageError> {
let mut storage = MemoryStorage::default();
let mut memory: MemoryInstance = vec![1u8; MEM_SIZE].try_into().unwrap();
let mut pc = 4;
@@ -70,7 +72,7 @@ fn test_load_contract_in_script() -> IoResult<(), Infallible> {
Ok(())
}
#[test]
-fn test_load_contract_in_call() -> IoResult<(), Infallible> {
+fn test_load_contract_in_call() -> IoResult<(), MemoryStorageError> {
let mut storage = MemoryStorage::default();
let mut memory: MemoryInstance = vec![1u8; MEM_SIZE].try_into().unwrap();
let mut pc = 4;
@@ -130,7 +132,7 @@ fn test_load_contract_in_call() -> IoResult<(), Infallible> {
}
#[test]
-fn test_code_copy() -> IoResult<(), Infallible> {
+fn test_code_copy() -> IoResult<(), MemoryStorageError> {
let mut storage = MemoryStorage::default();
let mut memory: MemoryInstance = vec![1u8; MEM_SIZE].try_into().unwrap();
let mut cgas = 1000;
diff --git a/fuel-vm/src/interpreter/blockchain/other_tests.rs b/fuel-vm/src/interpreter/blockchain/other_tests.rs
index 0189b4138c..a59378114a 100644
--- a/fuel-vm/src/interpreter/blockchain/other_tests.rs
+++ b/fuel-vm/src/interpreter/blockchain/other_tests.rs
@@ -2,8 +2,10 @@
use alloc::vec;
-use crate::storage::MemoryStorage;
-use core::convert::Infallible;
+use crate::storage::{
+ MemoryStorage,
+ MemoryStorageError,
+};
use super::*;
use crate::interpreter::PanicContext;
@@ -25,7 +27,7 @@ fn test_burn(
initialize: impl Into