Skip to content

Commit 69dafd1

Browse files
committed
[SharovBot] fix(test): replace accounts.EmptyCodeHash with common.Hash{} for release/3.3 compat
EmptyCodeHash is not exported in the release/3.3 accounts package; use the zero-value common.Hash{} instead. Functionally identical for nonce-eviction tests.
1 parent 2c7fdc8 commit 69dafd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

txnprovider/txpool/pool_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1837,7 +1837,7 @@ func TestZombieQueuedEviction(t *testing.T) {
18371837
acc := accounts3.Account{
18381838
Nonce: 5,
18391839
Balance: *uint256.NewInt(1 * common.Ether),
1840-
CodeHash: accounts.EmptyCodeHash,
1840+
CodeHash: common.Hash{},
18411841
Incarnation: 0,
18421842
}
18431843
v := accounts3.SerialiseV3(&acc)
@@ -1925,7 +1925,7 @@ func TestZombieQueuedEviction(t *testing.T) {
19251925
acc2 := accounts3.Account{
19261926
Nonce: baseNonce,
19271927
Balance: *uint256.NewInt(10 * common.Ether),
1928-
CodeHash: accounts.EmptyCodeHash,
1928+
CodeHash: common.Hash{},
19291929
}
19301930
v2 := accounts3.SerialiseV3(&acc2)
19311931
var addr2 [20]byte

0 commit comments

Comments
 (0)