mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: update revm 19 alloy 09 (#13594)
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
use crate::utils::eth_payload_attributes;
|
||||
use alloy_eips::{calc_next_block_base_fee, eip2718::Encodable2718, eip4844};
|
||||
use alloy_eips::{calc_next_block_base_fee, eip2718::Encodable2718};
|
||||
use alloy_primitives::{Address, B256, U256};
|
||||
use alloy_provider::{network::EthereumWallet, Provider, ProviderBuilder, SendableTx};
|
||||
use alloy_rpc_types_beacon::relay::{
|
||||
@ -69,7 +69,7 @@ async fn test_fee_history() -> eyre::Result<()> {
|
||||
assert!(receipt.status());
|
||||
|
||||
let block = provider.get_block_by_number(1.into(), false.into()).await?.unwrap();
|
||||
assert_eq!(block.header.gas_used as u128, receipt.gas_used,);
|
||||
assert_eq!(block.header.gas_used, receipt.gas_used,);
|
||||
assert_eq!(block.header.base_fee_per_gas.unwrap(), expected_first_base_fee as u64);
|
||||
|
||||
for _ in 0..100 {
|
||||
@ -240,7 +240,6 @@ async fn test_flashbots_validate_v4() -> eyre::Result<()> {
|
||||
execution_payload: block_to_payload_v3(payload.block().clone()),
|
||||
blobs_bundle: BlobsBundleV1::new([]),
|
||||
execution_requests: payload.requests().unwrap().try_into().unwrap(),
|
||||
target_blobs_per_block: eip4844::TARGET_BLOBS_PER_BLOCK,
|
||||
signature: Default::default(),
|
||||
},
|
||||
parent_beacon_block_root: attrs.parent_beacon_block_root.unwrap(),
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
use alloy_eips::{BlockId, BlockNumberOrTag};
|
||||
use alloy_primitives::{bytes, Address, B256};
|
||||
use alloy_primitives::{bytes, Address, B256, U256};
|
||||
use alloy_provider::{
|
||||
network::{
|
||||
Ethereum, EthereumWallet, NetworkWallet, TransactionBuilder, TransactionBuilder7702,
|
||||
@ -26,8 +26,6 @@ pub(crate) fn eth_payload_attributes(timestamp: u64) -> EthPayloadBuilderAttribu
|
||||
suggested_fee_recipient: Address::ZERO,
|
||||
withdrawals: Some(vec![]),
|
||||
parent_beacon_block_root: Some(B256::ZERO),
|
||||
target_blobs_per_block: None,
|
||||
max_blobs_per_block: None,
|
||||
};
|
||||
EthPayloadBuilderAttributes::new(B256::ZERO, attributes)
|
||||
}
|
||||
@ -92,7 +90,7 @@ where
|
||||
if tx_type == TxType::Eip7702 {
|
||||
let signer = signers.choose(rng).unwrap();
|
||||
let auth = Authorization {
|
||||
chain_id: provider.get_chain_id().await?,
|
||||
chain_id: U256::from(provider.get_chain_id().await?),
|
||||
address: *call_destinations.choose(rng).unwrap(),
|
||||
nonce: provider
|
||||
.get_transaction_count(signer.address())
|
||||
|
||||
Reference in New Issue
Block a user