This repository was archived by the owner on Jul 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -341,7 +341,7 @@ impl RpcState {
341
341
. to_string ( )
342
342
. parse :: < u64 > ( )
343
343
. unwrap ( ) ,
344
- gas_price : * starknet_os_config. gas_price ( ) as u64 ,
344
+ gas_price : * starknet_os_config. gas_price ( ) ,
345
345
sequencer_address : starknet_os_config. fee_token_address ( ) . clone ( ) ,
346
346
}
347
347
}
@@ -569,7 +569,7 @@ mod tests {
569
569
. to_string ( )
570
570
. parse :: < u64 > ( )
571
571
. unwrap ( ) ,
572
- gas_price : gas_price_u128 as u64 ,
572
+ gas_price : gas_price_u128,
573
573
sequencer_address : fee_token_address,
574
574
} ;
575
575
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ pub static ref DECLARE_VERSION: Felt252 = 2.into();
82
82
pub static ref TRANSACTION_VERSION : Felt252 = 1 . into( ) ;
83
83
}
84
84
85
- pub const DEFAULT_GAS_PRICE : u64 = 100_000_000_000 ; // 100 * 10**9
85
+ pub const DEFAULT_GAS_PRICE : u128 = 100_000_000_000 ; // 100 * 10**9
86
86
pub const DEFAULT_CONTRACT_STORAGE_COMMITMENT_TREE_HEIGHT : u64 = 251 ;
87
87
pub const DEFAULT_GLOBAL_STATE_COMMITMENT_TREE_HEIGHT : u64 = 251 ;
88
88
pub const DEFAULT_INVOKE_TX_MAX_N_STEPS : u64 = 1000000 ;
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ pub struct BlockInfo {
29
29
/// Timestamp of the beginning of the last block creation attempt.
30
30
pub block_timestamp : u64 ,
31
31
/// L1 gas price (in Wei) measured at the beginning of the last block creation attempt.
32
- pub gas_price : u64 ,
32
+ pub gas_price : u128 ,
33
33
/// The sequencer address of this block.
34
34
pub sequencer_address : Address ,
35
35
}
Original file line number Diff line number Diff line change @@ -418,7 +418,7 @@ fn expected_validate_call_info(
418
418
fn expected_fee_transfer_call_info (
419
419
block_context : & BlockContext ,
420
420
account_address : & Address ,
421
- actual_fee : u64 ,
421
+ actual_fee : u128 ,
422
422
) -> CallInfo {
423
423
CallInfo {
424
424
entry_point_type : EntryPointType :: External . into ( ) ,
@@ -1502,7 +1502,7 @@ fn test_deploy_account() {
1502
1502
let expected_fee_transfer_call_info = expected_fee_transfer_call_info (
1503
1503
& block_context,
1504
1504
deploy_account_tx. contract_address ( ) ,
1505
- expected_fee as u64 ,
1505
+ expected_fee,
1506
1506
) ;
1507
1507
1508
1508
let resources = HashMap :: from ( [
You can’t perform that action at this time.
0 commit comments