mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 02:40:45 +00:00
Co-authored-by: aaronbuchwald <aaron.buchwald56@gmail.com>
This commit is contained in:
parent
da624be994
commit
0c57a6c64c
1 changed files with 1 additions and 3 deletions
|
|
@ -28,8 +28,6 @@ import (
|
||||||
"github.com/XinFinOrg/XDPoSChain/ethdb"
|
"github.com/XinFinOrg/XDPoSChain/ethdb"
|
||||||
)
|
)
|
||||||
|
|
||||||
var toAddr = common.BytesToAddress
|
|
||||||
|
|
||||||
type stateTest struct {
|
type stateTest struct {
|
||||||
db ethdb.Database
|
db ethdb.Database
|
||||||
state *StateDB
|
state *StateDB
|
||||||
|
|
@ -107,7 +105,7 @@ func TestNull(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestSnapshot(t *testing.T) {
|
func TestSnapshot(t *testing.T) {
|
||||||
stateobjaddr := toAddr([]byte("aa"))
|
stateobjaddr := common.BytesToAddress([]byte("aa"))
|
||||||
var storageaddr common.Hash
|
var storageaddr common.Hash
|
||||||
data1 := common.BytesToHash([]byte{42})
|
data1 := common.BytesToHash([]byte{42})
|
||||||
data2 := common.BytesToHash([]byte{43})
|
data2 := common.BytesToHash([]byte{43})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue