forked from cerc-io/plugeth
Delet => Delete
This commit is contained in:
parent
bf5365b317
commit
1650b59cd9
@ -64,14 +64,15 @@ type Env struct {
|
|||||||
type VmTest struct {
|
type VmTest struct {
|
||||||
Callcreates interface{}
|
Callcreates interface{}
|
||||||
//Env map[string]string
|
//Env map[string]string
|
||||||
Env Env
|
Env Env
|
||||||
Exec map[string]string
|
Exec map[string]string
|
||||||
Transaction map[string]string
|
Transaction map[string]string
|
||||||
Logs []Log
|
Logs []Log
|
||||||
Gas string
|
Gas string
|
||||||
Out string
|
Out string
|
||||||
Post map[string]Account
|
Post map[string]Account
|
||||||
Pre map[string]Account
|
Pre map[string]Account
|
||||||
|
PostStateRoot string
|
||||||
}
|
}
|
||||||
|
|
||||||
func RunVmTest(p string, t *testing.T) {
|
func RunVmTest(p string, t *testing.T) {
|
||||||
@ -154,6 +155,12 @@ func RunVmTest(p string, t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !isVmTest {
|
||||||
|
if !bytes.Equal(ethutil.Hex2Bytes(test.PostStateRoot), statedb.Root()) {
|
||||||
|
t.Errorf("Post state root error. Expected %s, got %x", test.PostStateRoot, statedb.Root())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if len(test.Logs) > 0 {
|
if len(test.Logs) > 0 {
|
||||||
if len(test.Logs) != len(logs) {
|
if len(test.Logs) != len(logs) {
|
||||||
t.Errorf("log length mismatch. Expected %d, got %d", len(test.Logs), len(logs))
|
t.Errorf("log length mismatch. Expected %d, got %d", len(test.Logs), len(logs))
|
||||||
|
Loading…
Reference in New Issue
Block a user