Skip to content

Commit 9169b24

Browse files
committed
format & clippy
1 parent a414fa0 commit 9169b24

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

crates/provider/src/ext/tenderly.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ use alloy_transport::TransportResult;
2626
#[cfg_attr(target_family = "wasm", async_trait::async_trait(?Send))]
2727
#[cfg_attr(not(target_family = "wasm"), async_trait::async_trait)]
2828
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
3031
async fn tenderly_simulate_transaction(
3132
&self,
3233
tx: N::TransactionRequest,
@@ -35,7 +36,8 @@ pub trait TenderlyApi<N: Network>: Send + Sync {
3536
block_overrides: Option<BlockOverrides>,
3637
) -> TransportResult<TenderlySimulationResult>;
3738

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
3941
async fn tenderly_simulate_bundle(
4042
&self,
4143
txs: &[N::TransactionRequest],

crates/rpc-types-tenderly/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ impl<'de> Deserialize<'de> for TenderlyLogInput {
109109
Err(e) => return Err(D::Error::custom(e)),
110110
};
111111

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 })
113113
}
114114
}
115115

@@ -179,7 +179,7 @@ fn parse_dyn_value(
179179
.collect::<Result<Vec<_>, _>>()?;
180180
Ok(DynSolValue::Tuple(values))
181181
}
182-
DynSolType::Function => Err(Error::custom("function type is not supported")),
182+
_ => Err(Error::custom("type is not supported")),
183183
}
184184
}
185185

0 commit comments

Comments
 (0)