primitives: use EMPTY_ROOT_HASH when possible (#11822)

This commit is contained in:
Thomas Coratger
2024-10-17 01:02:44 +02:00
committed by GitHub
parent 025cb3b70e
commit 24287e8562
6 changed files with 16 additions and 29 deletions

View File

@ -1814,9 +1814,7 @@ Post-merge hard forks (timestamp based):
hex!("078dc6061b1d8eaa8493384b59c9c65ceb917201221d08b80c4de6770b6ec7e7").into();
assert_eq!(chainspec.genesis_header().state_root, expected_state_root);
let expected_withdrawals_hash: B256 =
hex!("56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421").into();
assert_eq!(chainspec.genesis_header().withdrawals_root, Some(expected_withdrawals_hash));
assert_eq!(chainspec.genesis_header().withdrawals_root, Some(EMPTY_ROOT_HASH));
let expected_hash: B256 =
hex!("1fc027d65f820d3eef441ebeec139ebe09e471cf98516dce7b5643ccb27f418c").into();