Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
test: fix incorrect withdrawal_hash assigned
Browse files Browse the repository at this point in the history
  • Loading branch information
KimiWu123 committed Oct 4, 2023
1 parent 953da96 commit b389ad1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mock/src/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl Default for MockBlock {
mix_hash: Hash::zero(),
nonce: H64::zero(),
base_fee_per_gas: Some(*MOCK_BASEFEE),
withdrawal_hash: Some(Hash::zero()),
withdrawal_hash: None,
// Other information
total_difficulty: Word::zero(),
seal_fields: Vec::new(),
Expand Down Expand Up @@ -405,6 +405,7 @@ mod block_tests {
);
mock_block.nonce(H64::from_low_u64_be(0x6af23caae95692ef));
mock_block.base_fee_per_gas(None);
println!("A");
mock_block.hash();

let expected_hash =
Expand Down Expand Up @@ -450,6 +451,7 @@ mod block_tests {
);
mock_block.nonce(H64::from_low_u64_be(0x0000000000000000));
mock_block.base_fee_per_gas(Word::from_str("0xe538bec8c").ok());
println!("B");
mock_block.hash();

let expected_hash =
Expand Down Expand Up @@ -499,6 +501,7 @@ mod block_tests {
Hash::from_str("0xcebc2de77cef99baaae4833df486458f7716e822f7354d678852c205d12f12f3")
.ok(),
);
println!("C");
mock_block.hash();

let expected_hash =
Expand Down

0 comments on commit b389ad1

Please sign in to comment.