aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/state.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-03-21 06:17:53 +0800
committerobscuren <geffobscura@gmail.com>2014-03-21 06:17:53 +0800
commit7705b23f248156878d00c301fbbadafedaf7e3d2 (patch)
tree11f3373c598106b9f6f689370079a9b220a42e34 /ethchain/state.go
parentf3d27bf5d878120346f8cdd0744e7f1f8e1ee631 (diff)
downloadgo-tangerine-7705b23f248156878d00c301fbbadafedaf7e3d2.tar.gz
go-tangerine-7705b23f248156878d00c301fbbadafedaf7e3d2.tar.zst
go-tangerine-7705b23f248156878d00c301fbbadafedaf7e3d2.zip
Removed caller from tx and added "callership" to account.
Transactions can no longer serve as callers. Accounts are now the initial callee of closures. Transactions now serve as transport to call closures.
Diffstat (limited to 'ethchain/state.go')
-rw-r--r--ethchain/state.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ethchain/state.go b/ethchain/state.go
index b84d60c6c..b6750d62d 100644
--- a/ethchain/state.go
+++ b/ethchain/state.go
@@ -86,9 +86,9 @@ func (s *State) UpdateContract(addr []byte, contract *Contract) {
func (s *State) GetAccount(addr []byte) (account *Account) {
data := s.trie.Get(string(addr))
if data == "" {
- account = NewAccount(big.NewInt(0))
+ account = NewAccount(addr, big.NewInt(0))
} else {
- account = NewAccountFromData([]byte(data))
+ account = NewAccountFromData(addr, []byte(data))
}
return