aboutsummaryrefslogtreecommitdiffstats
path: root/tests/vm/gh_test.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-24 22:15:17 +0800
committerobscuren <geffobscura@gmail.com>2015-03-24 22:15:17 +0800
commit23bccbbc587aa22057eb7ae29c5b87d44b7cac7d (patch)
tree70e03dcff049ebbca32dc34c53881cf6b9e20a7c /tests/vm/gh_test.go
parentbbe795455a13c57dbba64c1082b618e791af46ce (diff)
downloaddexon-23bccbbc587aa22057eb7ae29c5b87d44b7cac7d.tar.gz
dexon-23bccbbc587aa22057eb7ae29c5b87d44b7cac7d.tar.zst
dexon-23bccbbc587aa22057eb7ae29c5b87d44b7cac7d.zip
Modified according to poc 9 changes
* Refund of value
Diffstat (limited to 'tests/vm/gh_test.go')
-rw-r--r--tests/vm/gh_test.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/vm/gh_test.go b/tests/vm/gh_test.go
index 123e8ccb5..cd5684dd4 100644
--- a/tests/vm/gh_test.go
+++ b/tests/vm/gh_test.go
@@ -7,10 +7,10 @@ import (
"testing"
"github.com/ethereum/go-ethereum/common"
+ "github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/logger"
- "github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/tests/helper"
)
@@ -144,6 +144,11 @@ func RunVmTest(p string, t *testing.T) {
if obj.Balance().Cmp(common.Big(account.Balance)) != 0 {
t.Errorf("%s's : (%x) balance failed. Expected %v, got %v => %v\n", name, obj.Address().Bytes()[:4], account.Balance, obj.Balance(), new(big.Int).Sub(common.Big(account.Balance), obj.Balance()))
}
+
+ if obj.Nonce() != common.String2Big(account.Nonce).Uint64() {
+ t.Errorf("%s's : (%x) nonce failed. Expected %v, got %v\n", name, obj.Address().Bytes()[:4], account.Nonce, obj.Nonce())
+ }
+
}
for addr, value := range account.Storage {
@@ -194,7 +199,7 @@ func RunVmTest(p string, t *testing.T) {
}
}
}
- //statedb.Trie().PrintRoot()
+ //fmt.Println(string(statedb.Dump()))
}
logger.Flush()
}