From 98c2af00dc896c50b36b737cc4e6567b0a3d27e6 Mon Sep 17 00:00:00 2001 From: cuiweixie Date: Sat, 17 Jan 2026 14:14:45 +0800 Subject: [PATCH] trie: using EmptyCodeHash --- trie/trie_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trie/trie_test.go b/trie/trie_test.go index b8b8edb33e..a8c0311707 100644 --- a/trie/trie_test.go +++ b/trie/trie_test.go @@ -792,7 +792,7 @@ func makeAccounts(size int) (addresses [][20]byte, accounts [][]byte) { var ( nonce = uint64(random.Int63()) root = types.EmptyRootHash - code = crypto.Keccak256(nil) + code = types.EmptyCodeHash[:] ) // The big.Rand function is not deterministic with regards to 64 vs 32 bit systems, // and will consume different amount of data from the rand source.