File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ use alloy_transport::TransportResult;
26
26
#[ cfg_attr( target_family = "wasm" , async_trait:: async_trait( ?Send ) ) ]
27
27
#[ cfg_attr( not( target_family = "wasm" ) , async_trait:: async_trait) ]
28
28
pub trait TenderlyApi < N : Network > : Send + Sync {
29
- /// Simulates a transaction as it would execute on the given block, allowing overrides of state variables and balances of all accounts
29
+ /// Simulates a transaction as it would execute on the given block, allowing overrides of state
30
+ /// variables and balances of all accounts
30
31
async fn tenderly_simulate_transaction (
31
32
& self ,
32
33
tx : N :: TransactionRequest ,
@@ -35,7 +36,8 @@ pub trait TenderlyApi<N: Network>: Send + Sync {
35
36
block_overrides : Option < BlockOverrides > ,
36
37
) -> TransportResult < TenderlySimulationResult > ;
37
38
38
- /// Simulates a transaction as it would execute on the given block, allowing overrides of state variables and balances of all accounts
39
+ /// Simulates a transaction as it would execute on the given block, allowing overrides of state
40
+ /// variables and balances of all accounts
39
41
async fn tenderly_simulate_bundle (
40
42
& self ,
41
43
txs : & [ N :: TransactionRequest ] ,
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ impl<'de> Deserialize<'de> for TenderlyLogInput {
109
109
Err ( e) => return Err ( D :: Error :: custom ( e) ) ,
110
110
} ;
111
111
112
- Ok ( TenderlyLogInput { value, r#type : ty, name : raw. name , indexed : raw. indexed } )
112
+ Ok ( Self { value, r#type : ty, name : raw. name , indexed : raw. indexed } )
113
113
}
114
114
}
115
115
@@ -179,7 +179,7 @@ fn parse_dyn_value(
179
179
. collect :: < Result < Vec < _ > , _ > > ( ) ?;
180
180
Ok ( DynSolValue :: Tuple ( values) )
181
181
}
182
- DynSolType :: Function => Err ( Error :: custom ( "function type is not supported" ) ) ,
182
+ _ => Err ( Error :: custom ( "type is not supported" ) ) ,
183
183
}
184
184
}
185
185
You can’t perform that action at this time.
0 commit comments