File tree Expand file tree Collapse file tree 7 files changed +36
-6
lines changed
anvil/core/src/eth/transaction Expand file tree Collapse file tree 7 files changed +36
-6
lines changed Original file line number Diff line number Diff line change @@ -150,4 +150,4 @@ dprint-check: ## Check formatting with dprint
150
150
echo " Installing dprint..." ; \
151
151
cargo install dprint; \
152
152
fi
153
- dprint check
153
+ dprint check
Original file line number Diff line number Diff line change @@ -801,7 +801,7 @@ impl TypedTransaction {
801
801
input : t. tx ( ) . tx ( ) . input . clone ( ) ,
802
802
nonce : t. tx ( ) . tx ( ) . nonce ,
803
803
gas_limit : t. tx ( ) . tx ( ) . gas_limit ,
804
- gas_price : Some ( t . tx ( ) . tx ( ) . max_fee_per_blob_gas ) ,
804
+ gas_price : None ,
805
805
max_fee_per_gas : Some ( t. tx ( ) . tx ( ) . max_fee_per_gas ) ,
806
806
max_priority_fee_per_gas : Some ( t. tx ( ) . tx ( ) . max_priority_fee_per_gas ) ,
807
807
max_fee_per_blob_gas : Some ( t. tx ( ) . tx ( ) . max_fee_per_blob_gas ) ,
@@ -815,7 +815,7 @@ impl TypedTransaction {
815
815
input : t. tx ( ) . input . clone ( ) ,
816
816
nonce : t. tx ( ) . nonce ,
817
817
gas_limit : t. tx ( ) . gas_limit ,
818
- gas_price : Some ( t . tx ( ) . max_fee_per_gas ) ,
818
+ gas_price : None ,
819
819
max_fee_per_gas : Some ( t. tx ( ) . max_fee_per_gas ) ,
820
820
max_priority_fee_per_gas : Some ( t. tx ( ) . max_priority_fee_per_gas ) ,
821
821
max_fee_per_blob_gas : None ,
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ use foundry_evm::{
30
30
opts:: EvmOpts ,
31
31
traces:: { InternalTraceMode , TraceMode } ,
32
32
} ;
33
+ use itertools:: Either ;
33
34
use regex:: Regex ;
34
35
use revm:: context:: TransactionType ;
35
36
use std:: { str:: FromStr , sync:: LazyLock } ;
@@ -311,6 +312,12 @@ impl CallArgs {
311
312
}
312
313
}
313
314
315
+ if let Some ( auth) = tx. inner . authorization_list {
316
+ env_tx. authorization_list = auth. into_iter ( ) . map ( Either :: Left ) . collect ( ) ;
317
+
318
+ env_tx. tx_type = TransactionType :: Eip7702 as u8 ;
319
+ }
320
+
314
321
let trace = match tx_kind {
315
322
TxKind :: Create => {
316
323
let deploy_result = executor. deploy ( from, input, value, None ) ;
Original file line number Diff line number Diff line change @@ -105,8 +105,8 @@ fn fuzz_param_inner(
105
105
}
106
106
107
107
/// Mutates the current value of a given a parameter type and value.
108
- /// TODO: add more mutations, see https://github.com/fuzzland/ityfuzz/blob/master/src/mutation_utils.rs#L449-L452
109
- /// for static args,
108
+ /// TODO: add more mutations, see < https://github.com/fuzzland/ityfuzz/blob/master/src/mutation_utils.rs#L449-L452>
109
+ /// for static args.
110
110
pub fn mutate_param_value (
111
111
param : & DynSolType ,
112
112
value : DynSolValue ,
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ impl FmtArgs {
70
70
}
71
71
[ one] if one == Path :: new ( "-" ) => {
72
72
let mut s = String :: new ( ) ;
73
- io:: stdin ( ) . read_to_string ( & mut s) . expect ( "Failed to read from stdin") ;
73
+ io:: stdin ( ) . read_to_string ( & mut s) . wrap_err ( "failed to read from stdin") ? ;
74
74
Input :: Stdin ( s)
75
75
}
76
76
paths => {
Original file line number Diff line number Diff line change @@ -1856,3 +1856,20 @@ contract Counter {
1856
1856
assert_eq!( "true" , enabled. unwrap( ) . to_string( ) ) ;
1857
1857
assert_eq!( "800" , runs. unwrap( ) . to_string( ) ) ;
1858
1858
} ) ;
1859
+
1860
+ // <https://github.com/foundry-rs/foundry/issues/11227>
1861
+ forgetest_init ! ( test_exclude_lints_config, |prj, cmd| {
1862
+ prj. update_config( |config| {
1863
+ config. lint. exclude_lints = vec![
1864
+ "asm-keccak256" . to_string( ) ,
1865
+ "incorrect-shift" . to_string( ) ,
1866
+ "divide-before-multiply" . to_string( ) ,
1867
+ "mixed-case-variable" . to_string( ) ,
1868
+ "mixed-case-function" . to_string( ) ,
1869
+ "screaming-snake-case-const" . to_string( ) ,
1870
+ "screaming-snake-case-immutable" . to_string( ) ,
1871
+ "unwrapped-modifier-logic" . to_string( ) ,
1872
+ ]
1873
+ } ) ;
1874
+ cmd. args( [ "lint" ] ) . assert_success( ) . stdout_eq( str ![ "" ] ) ;
1875
+ } ) ;
Original file line number Diff line number Diff line change @@ -370,6 +370,12 @@ impl<'a> TryFrom<&'a str> for SolLint {
370
370
}
371
371
}
372
372
373
+ for & lint in codesize:: REGISTERED_LINTS {
374
+ if lint. id ( ) == value {
375
+ return Ok ( lint) ;
376
+ }
377
+ }
378
+
373
379
Err ( SolLintError :: InvalidId ( value. to_string ( ) ) )
374
380
}
375
381
}
You can’t perform that action at this time.
0 commit comments