aboutsummaryrefslogtreecommitdiffstats
path: root/tests/state_test_util.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-09-19 07:34:54 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-09-19 07:34:54 +0800
commite40b447fead5ec3c4ccb133418431ea25be3c545 (patch)
treee0f46603015362e16e58c6381272ca2cca8b1641 /tests/state_test_util.go
parentb94b9b0158ed2549eb025aad3da63c3cf2015a51 (diff)
parent47ca6904b326165e394859f15bd2c374f7351847 (diff)
downloadgo-tangerine-e40b447fead5ec3c4ccb133418431ea25be3c545.tar.gz
go-tangerine-e40b447fead5ec3c4ccb133418431ea25be3c545.tar.zst
go-tangerine-e40b447fead5ec3c4ccb133418431ea25be3c545.zip
Merge pull request #1814 from Gustav-Simonsson/common_tests
tests: update common test wrappers and test files
Diffstat (limited to 'tests/state_test_util.go')
-rw-r--r--tests/state_test_util.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/state_test_util.go b/tests/state_test_util.go
index def9b0c36..086822461 100644
--- a/tests/state_test_util.go
+++ b/tests/state_test_util.go
@@ -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()))