Skip to content

Commit ac1d20b

Browse files
authored
feat(deps): upgrade to alloy for reth 1.1.4 (#67)
* feat(deps): upgrade to alloy for reth 1.1.4 * chore: fix test
1 parent 5f2a89e commit ac1d20b

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ option-if-let-else = "warn"
2727
redundant-clone = "warn"
2828

2929
[dependencies]
30-
alloy-rlp = { version = "0.3", default-features = false }
30+
alloy-rlp = { version = "0.3.10", default-features = false }
3131

32-
alloy-primitives = { version = "0.8.8", default-features = false }
33-
alloy-sol-types = { version = "0.8.8", default-features = false }
32+
alloy-primitives = { version = "0.8.11", default-features = false }
33+
alloy-sol-types = { version = "0.8.11", default-features = false }
3434

35-
alloy = { version = "=0.5.4", default-features = false, features = ["consensus", "rpc-types-mev", "eips", "k256"] }
35+
alloy = { version = "=0.7.3", default-features = false, features = ["consensus", "rpc-types-mev", "eips", "k256"] }
3636

3737
revm = { version = "18.0.0", default-features = false }
3838

src/fill/alloy.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,12 +262,12 @@ impl Block for alloy::rpc::types::eth::Header {
262262
blob_excess_gas_and_price,
263263
} = block_env;
264264
*number = U256::from(self.number);
265-
*coinbase = self.miner;
265+
*coinbase = self.beneficiary;
266266
*timestamp = U256::from(self.timestamp);
267267
*gas_limit = U256::from(self.gas_limit);
268268
*basefee = U256::from(self.base_fee_per_gas.unwrap_or_default());
269269
*difficulty = U256::from(self.difficulty);
270-
*prevrandao = self.mix_hash;
270+
*prevrandao = Some(self.mix_hash);
271271
*blob_excess_gas_and_price = self.blob_gas_used.map(BlobExcessGasAndPrice::new);
272272
}
273273
}
@@ -336,7 +336,7 @@ mod tests {
336336

337337
#[test]
338338
fn test_header_fill() {
339-
let raw = r#"{"parentHash":"0x0000000000000000000000000000000000000000000000000000000000000000","ommersHash":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","beneficiary":"0x0000000000000000000000000000000000000000","stateRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","transactionsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","receiptsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","withdrawalsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","difficulty":"0x0","number":"0x0","gasLimit":"0x0","gasUsed":"0x0","timestamp":"0x0","mixHash":"0x0000000000000000000000000000000000000000000000000000000000000000","nonce":"0x0000000000000000","baseFeePerGas":"0x1","extraData":"0x"}"#;
339+
let raw = r#"{"parentHash":"0x0000000000000000000000000000000000000000000000000000000000000000","sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","miner":"0x0000000000000000000000000000000000000000","stateRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","transactionsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","receiptsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","difficulty":"0x0","number":"0x0","gasLimit":"0x0","gasUsed":"0x0","timestamp":"0x0","extraData":"0x","mixHash":"0x0000000000000000000000000000000000000000000000000000000000000000","nonce":"0x0000000000000000","baseFeePerGas":"0x1","withdrawalsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"}"#;
340340
let header = Header {
341341
base_fee_per_gas: Some(1),
342342
withdrawals_root: Some(EMPTY_ROOT_HASH),

src/lifecycle/output.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ impl Default for BlockOutput {
2525
}
2626
}
2727

28-
impl<T: TxReceipt> BlockOutput<T> {
28+
impl<T: TxReceipt<Log = alloy_primitives::Log>> BlockOutput<T> {
2929
/// Create a new block output with memory allocated to hold `capacity`
3030
/// transaction outcomes.
3131
pub fn with_capacity(capacity: usize) -> Self {

0 commit comments

Comments
 (0)