Skip to content

Commit

Permalink
Update blockifier and bump supported starknet version (#1371)
Browse files Browse the repository at this point in the history
  • Loading branch information
omerfirmak authored Oct 25, 2023
1 parent 2789f8e commit fbd677f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion blockchain/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,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 {
Expand Down
2 changes: 1 addition & 1 deletion vm/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion vm/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit fbd677f

Please sign in to comment.