diff options
author | obscuren <geffobscura@gmail.com> | 2014-03-03 18:05:12 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-03-03 18:05:12 +0800 |
commit | 9d492b0509d3614072e0f9ed9fd1dc560ba29fc9 (patch) | |
tree | baf8e50b664cc64e6e8d45a234922aacbc14c860 /ethchain/state.go | |
parent | bfed1c7cac98e135ba176c03bd7b4fe51c0dc932 (diff) | |
download | go-tangerine-9d492b0509d3614072e0f9ed9fd1dc560ba29fc9.tar go-tangerine-9d492b0509d3614072e0f9ed9fd1dc560ba29fc9.tar.gz go-tangerine-9d492b0509d3614072e0f9ed9fd1dc560ba29fc9.tar.bz2 go-tangerine-9d492b0509d3614072e0f9ed9fd1dc560ba29fc9.tar.lz go-tangerine-9d492b0509d3614072e0f9ed9fd1dc560ba29fc9.tar.xz go-tangerine-9d492b0509d3614072e0f9ed9fd1dc560ba29fc9.tar.zst go-tangerine-9d492b0509d3614072e0f9ed9fd1dc560ba29fc9.zip |
Renamed Address to Account
Diffstat (limited to 'ethchain/state.go')
-rw-r--r-- | ethchain/state.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ethchain/state.go b/ethchain/state.go index 4cd2c58ef..e6649cf22 100644 --- a/ethchain/state.go +++ b/ethchain/state.go @@ -93,18 +93,18 @@ func Compile(code []string) (script []string) { return } -func (s *State) GetAccount(addr []byte) (account *Address) { +func (s *State) GetAccount(addr []byte) (account *Account) { data := s.trie.Get(string(addr)) if data == "" { - account = NewAddress(big.NewInt(0)) + account = NewAccount(big.NewInt(0)) } else { - account = NewAddressFromData([]byte(data)) + account = NewAccountFromData([]byte(data)) } return } -func (s *State) UpdateAccount(addr []byte, account *Address) { +func (s *State) UpdateAccount(addr []byte, account *Account) { s.trie.Update(string(addr), string(account.RlpEncode())) } |