Skip to content

Commit

Permalink
Merge pull request #4 from lambdaclass/get_compiled_contract_class-re…
Browse files Browse the repository at this point in the history
…turn-sierra

Return sierra contract class  in `RpcStateReader:: get_compiled_contract_class`
  • Loading branch information
pefontana authored Jun 10, 2024
2 parents 453582a + c940b6c commit fd1f894
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rpc-state-reader/src/blockifier_state_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,7 @@ impl StateReader for RpcStateReader {
sierra_program_debug_info: None,
abi: None,
};
let casm_cc =
CasmContractClass::from_contract_class(sierra_cc, false, usize::MAX).unwrap();
ContractClass::V1(casm_cc.try_into().unwrap())
ContractClass::V1Sierra(sierra_cc.try_into().unwrap())
}
None => {
return Err(StateError::UndeclaredClassHash(
Expand Down

0 comments on commit fd1f894

Please sign in to comment.