From ee90bbe9eaf7471373f424d4cd143fd50f42688a Mon Sep 17 00:00:00 2001 From: Bohdan Ohorodnii Date: Thu, 14 Nov 2024 13:57:13 +0200 Subject: [PATCH] fix(blockifier): fix gas amounts for native after updating to new executor --- .../blockifier/src/execution/syscalls/syscall_tests/keccak.rs | 2 +- .../src/execution/syscalls/syscall_tests/send_message_to_l1.rs | 2 +- .../blockifier/src/execution/syscalls/syscall_tests/sha256.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/blockifier/src/execution/syscalls/syscall_tests/keccak.rs b/crates/blockifier/src/execution/syscalls/syscall_tests/keccak.rs index b61a0d9d7f..9744a5dd33 100644 --- a/crates/blockifier/src/execution/syscalls/syscall_tests/keccak.rs +++ b/crates/blockifier/src/execution/syscalls/syscall_tests/keccak.rs @@ -13,7 +13,7 @@ use crate::test_utils::{trivial_external_entry_point_new, CairoVersion, BALANCE} #[test_case(FeatureContract::TestContract(CairoVersion::Cairo1), 254910; "VM")] #[cfg_attr( feature = "cairo_native", - test_case(FeatureContract::TestContract(CairoVersion::Native), 265110; "Native") + test_case(FeatureContract::TestContract(CairoVersion::Native), 263740; "Native") )] fn test_keccak(test_contract: FeatureContract, expected_gas: u64) { let chain_info = &ChainInfo::create_for_testing(); diff --git a/crates/blockifier/src/execution/syscalls/syscall_tests/send_message_to_l1.rs b/crates/blockifier/src/execution/syscalls/syscall_tests/send_message_to_l1.rs index d988ffeee0..0fa63e65e5 100644 --- a/crates/blockifier/src/execution/syscalls/syscall_tests/send_message_to_l1.rs +++ b/crates/blockifier/src/execution/syscalls/syscall_tests/send_message_to_l1.rs @@ -15,7 +15,7 @@ use crate::test_utils::{trivial_external_entry_point_new, CairoVersion, BALANCE} #[cfg_attr( feature = "cairo_native", - test_case(FeatureContract::TestContract(CairoVersion::Native), 32160; "Native") + test_case(FeatureContract::TestContract(CairoVersion::Native), 30680; "Native") )] #[test_case(FeatureContract::TestContract(CairoVersion::Cairo1), 20960; "VM")] fn test_send_message_to_l1(test_contract: FeatureContract, expected_gas: u64) { diff --git a/crates/blockifier/src/execution/syscalls/syscall_tests/sha256.rs b/crates/blockifier/src/execution/syscalls/syscall_tests/sha256.rs index 0b10cdddf0..a266fb3501 100644 --- a/crates/blockifier/src/execution/syscalls/syscall_tests/sha256.rs +++ b/crates/blockifier/src/execution/syscalls/syscall_tests/sha256.rs @@ -12,7 +12,7 @@ use crate::test_utils::{trivial_external_entry_point_new, CairoVersion, BALANCE} #[cfg_attr( feature = "cairo_native", - test_case(FeatureContract::TestContract(CairoVersion::Native), 891625; "Native") + test_case(FeatureContract::TestContract(CairoVersion::Native), 890255; "Native") )] #[test_case(FeatureContract::TestContract(CairoVersion::Cairo1), 881425; "VM")] fn test_sha256(test_contract: FeatureContract, gas_consumed: u64) {