Skip to content

Commit

Permalink
V3 transactions integration tests (#625)
Browse files Browse the repository at this point in the history
* integration tests

* fixed integration test

* remove variable type from declaration

* changed test name 

* remove comments

* removed variable 

* remove qualification of a type and import it

* added comment 

* remove args

* use assert_contains

* clippy
  • Loading branch information
marioiordanov authored Oct 14, 2024
1 parent 210d963 commit 093add7
Show file tree
Hide file tree
Showing 2 changed files with 420 additions and 2 deletions.
3 changes: 1 addition & 2 deletions crates/starknet-devnet-core/src/starknet/estimations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ use starknet_types::rpc::estimate_message_fee::{
};
use starknet_types::rpc::transactions::BroadcastedTransaction;

use crate::constants::USE_KZG_DA;
use crate::error::{DevnetResult, Error};
use crate::starknet::Starknet;
use crate::utils::get_versioned_constants;
Expand Down Expand Up @@ -122,7 +121,7 @@ fn estimate_transaction_fee<S: StateReader>(
let gas_vector = transaction_execution_info
.transaction_receipt
.resources
.to_gas_vector(&get_versioned_constants(), USE_KZG_DA)?;
.to_gas_vector(&get_versioned_constants(), block_context.block_info().use_kzg_da)?;
let total_fee =
fee_utils::get_fee_by_gas_vector(block_context.block_info(), gas_vector, &fee_type);

Expand Down
Loading

0 comments on commit 093add7

Please sign in to comment.