From 0c57a6c64cd25758cfcc96a7d150c9dd9561911a Mon Sep 17 00:00:00 2001 From: Daniel Liu <139250065@qq.com> Date: Thu, 21 Aug 2025 13:38:23 +0800 Subject: [PATCH] core/state: remove toAddr helper in tests #22772 (#1203) Co-authored-by: aaronbuchwald --- core/state/state_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/state/state_test.go b/core/state/state_test.go index 98d45231c2..9f3a904852 100644 --- a/core/state/state_test.go +++ b/core/state/state_test.go @@ -28,8 +28,6 @@ import ( "github.com/XinFinOrg/XDPoSChain/ethdb" ) -var toAddr = common.BytesToAddress - type stateTest struct { db ethdb.Database state *StateDB @@ -107,7 +105,7 @@ func TestNull(t *testing.T) { } func TestSnapshot(t *testing.T) { - stateobjaddr := toAddr([]byte("aa")) + stateobjaddr := common.BytesToAddress([]byte("aa")) var storageaddr common.Hash data1 := common.BytesToHash([]byte{42}) data2 := common.BytesToHash([]byte{43})