tests: update common test wrappers and test files

This commit is contained in:
Gustav Simonsson
2015-09-14 14:27:25 +02:00
parent 216c486a3a
commit 075815e5ff
7 changed files with 13102 additions and 424 deletions

View File

@ -181,9 +181,6 @@ func runStateTest(test VmTest) error {
// check post state
for addr, account := range test.Post {
obj := statedb.GetStateObject(common.HexToAddress(addr))
if obj == nil {
continue
}
if obj.Balance().Cmp(common.Big(account.Balance)) != 0 {
return fmt.Errorf("(%x) balance failed. Expected %v, got %v => %v\n", obj.Address().Bytes()[:4], account.Balance, obj.Balance(), new(big.Int).Sub(common.Big(account.Balance), obj.Balance()))