From d3603c432b7673761970c14402c3bd09a4a44d51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20Faruk=20Irmak?= Date: Wed, 25 Oct 2023 11:06:29 +0300 Subject: [PATCH] Update blockifier and bump supported starknet version (#1371) --- blockchain/blockchain.go | 2 +- vm/rust/Cargo.toml | 2 +- vm/rust/src/lib.rs | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/blockchain/blockchain.go b/blockchain/blockchain.go index ffaf02f3a8..aa4814c55d 100644 --- a/blockchain/blockchain.go +++ b/blockchain/blockchain.go @@ -53,7 +53,7 @@ type Reader interface { var ( ErrParentDoesNotMatchHead = errors.New("block's parent hash does not match head block hash") - supportedStarknetVersion = semver.MustParse("0.12.2") + supportedStarknetVersion = semver.MustParse("0.12.3") ) func checkBlockVersion(protocolVersion string) error { diff --git a/vm/rust/Cargo.toml b/vm/rust/Cargo.toml index cac0a2b125..ed4547f401 100644 --- a/vm/rust/Cargo.toml +++ b/vm/rust/Cargo.toml @@ -8,7 +8,7 @@ edition = "2021" [dependencies] serde = "1.0.171" serde_json = { version = "1.0.96", features = ["raw_value"] } -blockifier = {git = "https://github.com/starkware-libs/blockifier", rev = "e7cc94f"} +blockifier = {git = "https://github.com/starkware-libs/blockifier", rev = "4fe4a667c024caa"} starknet_api = { git = "https://github.com/starkware-libs/starknet-api", rev = "8f620bc" } cairo-vm = "0.8.2" cairo-lang-casm = "2.1.0" diff --git a/vm/rust/src/lib.rs b/vm/rust/src/lib.rs index 28c7f863da..5262069d72 100644 --- a/vm/rust/src/lib.rs +++ b/vm/rust/src/lib.rs @@ -14,7 +14,7 @@ use blockifier::{ block_context::BlockContext, execution::{ contract_class::{ContractClass, ContractClassV1}, - entry_point::{CallEntryPoint, CallType, EntryPointExecutionContext, ExecutionResources}, + entry_point::{CallEntryPoint, CallType, EntryPointExecutionContext, ExecutionResources}, common_hints::ExecutionMode, }, fee::fee_utils::calculate_tx_fee, state::cached_state::CachedState, @@ -103,6 +103,7 @@ pub extern "C" fn cairoVMCall( ), AccountTransactionContext::default(), 4_000_000, + ExecutionMode::Execute, ); let call_info = entry_point.execute(&mut state, &mut resources, &mut context);