Skip to content

Commit

Permalink
chore: remove most logs from gas escalator logic
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-savu committed Jun 26, 2024
1 parent 26b5bd5 commit d6b5674
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ethers-middleware/src/gas_escalator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,11 @@ where
) -> Result<PendingTransaction<'_, M::Provider>, GasEscalatorError<M>> {
let tx = tx.into();

println!("GAS_ESCALATOR: Sending transaction: {:?}", tx);
let pending_tx = self
.inner
.send_transaction(tx.clone(), block)
.await
.map_err(GasEscalatorError::MiddlewareError)?;
println!("GAS_ESCALATOR: Sent transaction: {:?}", pending_tx);

let tx = match tx {
TypedTransaction::Legacy(inner) => inner,
Expand Down Expand Up @@ -310,7 +308,7 @@ impl<M, E> EscalationTask<M, E> {
match self.inner.send_transaction(replacement_tx.clone(), priority).await {
Ok(new_tx_hash) => {
let new_tx_hash = *new_tx_hash;
println!("escalated gas price");
println!("escalated gas price for tx hash: {:?}. New tx hash: {:?}", old_tx_hash, new_tx_hash);
tracing::debug!(
old_tx_hash = ?old_tx_hash,
new_tx_hash = ?new_tx_hash,
Expand Down

0 comments on commit d6b5674

Please sign in to comment.