chore: bump alloy (#10989)

This commit is contained in:
Matthias Seitz
2024-09-18 16:44:24 +02:00
committed by GitHub
parent be04f24a69
commit f3744b342f
5 changed files with 138 additions and 135 deletions

View File

@ -1,8 +1,7 @@
use alloy_consensus::{
BlobTransactionSidecar, EnvKzgSettings, SidecarBuilder, SimpleCoder, TxEip4844Variant,
TxEnvelope,
use alloy_consensus::{EnvKzgSettings, SidecarBuilder, SimpleCoder, TxEip4844Variant, TxEnvelope};
use alloy_network::{
eip2718::Encodable2718, Ethereum, EthereumWallet, TransactionBuilder, TransactionBuilder4844,
};
use alloy_network::{eip2718::Encodable2718, Ethereum, EthereumWallet, TransactionBuilder};
use alloy_primitives::{hex, Address, Bytes, TxKind, B256, U256};
use alloy_rpc_types::{TransactionInput, TransactionRequest};
use alloy_signer_local::PrivateKeySigner;
@ -34,13 +33,8 @@ impl TransactionTestContext {
let mut builder = SidecarBuilder::<SimpleCoder>::new();
builder.ingest(b"dummy blob");
let sidecar: BlobTransactionSidecar = builder.build()?;
<TransactionRequest as TransactionBuilder<Ethereum>>::set_blob_sidecar(&mut tx, sidecar);
<TransactionRequest as TransactionBuilder<Ethereum>>::set_max_fee_per_blob_gas(
&mut tx,
15e9 as u128,
);
tx.set_blob_sidecar(builder.build()?);
tx.set_max_fee_per_blob_gas(15e9 as u128);
let signed = Self::sign_tx(wallet, tx).await;
Ok(signed)

View File

@ -155,10 +155,10 @@ where
// Generate an execution witness for the aggregated state of accessed accounts.
// Destruct the cache database to retrieve the state provider.
let state_provider = db.database.into_inner();
let witness = state_provider.witness(Default::default(), hashed_state.clone())?;
let state = state_provider.witness(Default::default(), hashed_state.clone())?;
// Write the witness to the output directory.
let response = ExecutionWitness { witness, state_preimages: Some(state_preimages) };
let response = ExecutionWitness { state, keys: Some(state_preimages) };
File::create_new(self.output_directory.join(format!(
"{}_{}.json",
block.number,

View File

@ -389,6 +389,11 @@ where
.await?;
return Ok(frame)
}
GethDebugBuiltInTracerType::FlatCallTracer => {
return Err(
EthApiError::Unsupported("Flatcall tracer is not supported yet").into()
)
}
},
#[cfg(not(feature = "js-tracer"))]
GethDebugTracerType::JsTracer(_) => {
@ -666,13 +671,10 @@ where
// Generate an execution witness for the aggregated state of accessed accounts.
// Destruct the cache database to retrieve the state provider.
let state_provider = db.database.into_inner();
let witness =
let state =
state_provider.witness(Default::default(), hashed_state).map_err(Into::into)?;
Ok(ExecutionWitness {
witness,
state_preimages: include_preimages.then_some(state_preimages),
})
Ok(ExecutionWitness { state, keys: include_preimages.then_some(state_preimages) })
})
.await
}
@ -755,6 +757,11 @@ where
.map_err(Eth::Error::from_eth_err)?;
return Ok((frame.into(), res.state))
}
GethDebugBuiltInTracerType::FlatCallTracer => {
return Err(
EthApiError::Unsupported("Flatcall tracer is not supported yet").into()
)
}
},
#[cfg(not(feature = "js-tracer"))]
GethDebugTracerType::JsTracer(_) => {