aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ethtest/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ethtest/main.go')
-rw-r--r--tests/ethtest/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ethtest/main.go b/tests/ethtest/main.go
index 3e85891e4..e19892557 100644
--- a/tests/ethtest/main.go
+++ b/tests/ethtest/main.go
@@ -22,7 +22,7 @@ type Account struct {
func StateObjectFromAccount(addr string, account Account) *ethstate.StateObject {
obj := ethstate.NewStateObject(ethutil.Hex2Bytes(addr))
- obj.Balance = ethutil.Big(account.Balance)
+ obj.SetBalance(ethutil.Big(account.Balance))
if ethutil.IsHex(account.Code) {
account.Code = account.Code[2:]