From d4eaa5987b6bc6d66ce4661192ba99db3e428180 Mon Sep 17 00:00:00 2001 From: Gustavo Madeira Krieger Date: Mon, 25 Nov 2024 14:06:33 -0300 Subject: [PATCH] dev: remove unused code from storage-utils --- crates/starknet-os/src/storage/storage_utils.rs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/crates/starknet-os/src/storage/storage_utils.rs b/crates/starknet-os/src/storage/storage_utils.rs index 43b34aad9..ed47cd477 100644 --- a/crates/starknet-os/src/storage/storage_utils.rs +++ b/crates/starknet-os/src/storage/storage_utils.rs @@ -116,19 +116,3 @@ pub async fn build_starknet_storage_async deserialize pass, so it is not cheap! -pub fn deprecated_contract_class_api2vm( - api_class: &starknet_api::deprecated_contract_class::ContractClass, -) -> serde_json::Result { - let serialized = serde_json::to_string(&api_class)?; - - let vm_class_v0_inner: blockifier::execution::contract_class::ContractClassV0Inner = - serde_json::from_str(serialized.as_str())?; - - let vm_class_v0 = blockifier::execution::contract_class::ContractClassV0(std::sync::Arc::new(vm_class_v0_inner)); - let vm_class = blockifier::execution::contract_class::ContractClass::V0(vm_class_v0); - - Ok(vm_class) -}