From 1bead2c00b2d486678d3adcb824c34aea02e1407 Mon Sep 17 00:00:00 2001 From: Rodrigo Date: Sun, 6 Oct 2024 13:41:10 -0400 Subject: [PATCH] refactor: panics -> todo & new msgs for Native Class --- crates/blockifier/src/execution/contract_class.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/crates/blockifier/src/execution/contract_class.rs b/crates/blockifier/src/execution/contract_class.rs index 90b0d0cc7d..b4d90c3590 100644 --- a/crates/blockifier/src/execution/contract_class.rs +++ b/crates/blockifier/src/execution/contract_class.rs @@ -105,10 +105,7 @@ impl ContractClass { ContractClass::V0(class) => class.estimate_casm_hash_computation_resources(), ContractClass::V1(class) => class.estimate_casm_hash_computation_resources(), ContractClass::V1Native(_) => { - panic!( - "estimate_casm_hash_computation_resources is not supported for native \ - contracts." - ) + todo!("Use casm to estimate casm hash computation resources") } } } @@ -133,7 +130,7 @@ impl ContractClass { ContractClass::V0(class) => class.bytecode_length(), ContractClass::V1(class) => class.bytecode_length(), ContractClass::V1Native(_) => { - panic!("bytecode_length is not supported for native contracts.") + todo!("implement bytecode_length for native contracts.") } } }