aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/state.go
diff options
context:
space:
mode:
Diffstat (limited to 'ethchain/state.go')
-rw-r--r--ethchain/state.go8
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()))
}