diff options
author | obscuren <geffobscura@gmail.com> | 2015-02-20 21:19:34 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-02-20 21:19:34 +0800 |
commit | ea9a549bbdc8377bca73f1417f2dc4a18396a382 (patch) | |
tree | f4f8719ad52f17b3db4b26626a9f5932870f9009 /tests | |
parent | 5c975dd4ed7adb29453fa28e64c0193d323cae99 (diff) | |
download | go-tangerine-ea9a549bbdc8377bca73f1417f2dc4a18396a382.tar.gz go-tangerine-ea9a549bbdc8377bca73f1417f2dc4a18396a382.tar.zst go-tangerine-ea9a549bbdc8377bca73f1417f2dc4a18396a382.zip |
Removed exported fields from state object and added proper set/getters
Diffstat (limited to 'tests')
-rw-r--r-- | tests/vm/gh_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/vm/gh_test.go b/tests/vm/gh_test.go index 17f945910..2151cf9a5 100644 --- a/tests/vm/gh_test.go +++ b/tests/vm/gh_test.go @@ -46,8 +46,8 @@ func StateObjectFromAccount(db ethutil.Database, addr string, account Account) * if ethutil.IsHex(account.Code) { account.Code = account.Code[2:] } - obj.Code = ethutil.Hex2Bytes(account.Code) - obj.Nonce = ethutil.Big(account.Nonce).Uint64() + obj.SetCode(ethutil.Hex2Bytes(account.Code)) + obj.SetNonce(ethutil.Big(account.Nonce).Uint64()) return obj } |