diff options
author | obscuren <geffobscura@gmail.com> | 2014-03-21 06:17:53 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-03-21 06:17:53 +0800 |
commit | 7705b23f248156878d00c301fbbadafedaf7e3d2 (patch) | |
tree | 11f3373c598106b9f6f689370079a9b220a42e34 /ethchain/state.go | |
parent | f3d27bf5d878120346f8cdd0744e7f1f8e1ee631 (diff) | |
download | dexon-7705b23f248156878d00c301fbbadafedaf7e3d2.tar dexon-7705b23f248156878d00c301fbbadafedaf7e3d2.tar.gz dexon-7705b23f248156878d00c301fbbadafedaf7e3d2.tar.bz2 dexon-7705b23f248156878d00c301fbbadafedaf7e3d2.tar.lz dexon-7705b23f248156878d00c301fbbadafedaf7e3d2.tar.xz dexon-7705b23f248156878d00c301fbbadafedaf7e3d2.tar.zst dexon-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.go | 4 |
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 |