From 23ca4d58a194d39b516ca04de8ce98c5086f67c6 Mon Sep 17 00:00:00 2001 From: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com> Date: Thu, 7 Dec 2023 19:04:12 +0800 Subject: [PATCH] fix eth/protocols/snap/sync_test.go (#590) --- eth/protocols/snap/sync_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eth/protocols/snap/sync_test.go b/eth/protocols/snap/sync_test.go index 021f01c681..d451c7a157 100644 --- a/eth/protocols/snap/sync_test.go +++ b/eth/protocols/snap/sync_test.go @@ -1582,8 +1582,8 @@ func makeBoundaryAccountTrie(scheme string, n int) (string, *trie.Trie, []*kv) { Nonce: uint64(0), Balance: big.NewInt(int64(i)), Root: types.EmptyRootHash, - KeccakCodeHash: getKeccakCodeHash(i), - PoseidonCodeHash: getPoseidonCodeHash(i), + KeccakCodeHash: getKeccakCodeHash(uint64(i)), + PoseidonCodeHash: getPoseidonCodeHash(uint64(i)), }) elem := &kv{boundaries[i].Bytes(), value} accTrie.MustUpdate(elem.k, elem.v) @@ -1628,10 +1628,10 @@ func makeAccountTrieWithStorageWithUniqueStorage(scheme string, accounts, slots // Create n accounts in the trie for i := uint64(1); i <= uint64(accounts); i++ { key := key32(i) - keccakCodehash := types.EmptyKeccakCodeHash.Bytes() + keccakCodeHash := types.EmptyKeccakCodeHash.Bytes() poseidonCodeHash := types.EmptyPoseidonCodeHash.Bytes() if code { - keccakCodehash = getKeccakCodeHash(i) + keccakCodeHash = getKeccakCodeHash(i) poseidonCodeHash = getPoseidonCodeHash(i) } // Create a storage trie