diff options
author | obscuren <geffobscura@gmail.com> | 2014-04-16 10:06:51 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-04-16 10:06:51 +0800 |
commit | 9c6aca78933c14ca107da30c4690808950718368 (patch) | |
tree | da641b2904ea6ed05870a1ded486543529eae5a3 /ethchain/keypair.go | |
parent | ca13e3b1058f0d680b79dc1d9319d427a09493f8 (diff) | |
download | go-tangerine-9c6aca78933c14ca107da30c4690808950718368.tar go-tangerine-9c6aca78933c14ca107da30c4690808950718368.tar.gz go-tangerine-9c6aca78933c14ca107da30c4690808950718368.tar.bz2 go-tangerine-9c6aca78933c14ca107da30c4690808950718368.tar.lz go-tangerine-9c6aca78933c14ca107da30c4690808950718368.tar.xz go-tangerine-9c6aca78933c14ca107da30c4690808950718368.tar.zst go-tangerine-9c6aca78933c14ca107da30c4690808950718368.zip |
Merged accounts and contracts in to StateObject
* Account removed
* Contract removed
* Address state changed to CachedStateObject
* Added StateObject
Diffstat (limited to 'ethchain/keypair.go')
-rw-r--r-- | ethchain/keypair.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ethchain/keypair.go b/ethchain/keypair.go index 9daaedbee..a5af791d0 100644 --- a/ethchain/keypair.go +++ b/ethchain/keypair.go @@ -10,7 +10,7 @@ type KeyPair struct { PublicKey []byte // The associated account - account *Account + account *StateObject state *State } @@ -24,7 +24,7 @@ func (k *KeyPair) Address() []byte { return ethutil.Sha3Bin(k.PublicKey[1:])[12:] } -func (k *KeyPair) Account() *Account { +func (k *KeyPair) Account() *StateObject { if k.account == nil { k.account = k.state.GetAccount(k.Address()) } |