Skip to content

Commit

Permalink
refactor: panics -> todo & new msgs for Native Class
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigo-pino committed Oct 6, 2024
1 parent 895fd91 commit 1bead2c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions crates/blockifier/src/execution/contract_class.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
}
Expand All @@ -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.")
}
}
}
Expand Down

0 comments on commit 1bead2c

Please sign in to comment.