diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-04-02 19:39:46 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-04-02 19:39:46 +0800 |
commit | 118ad22ee59658ec8ff476999e48d9bffb0c7db6 (patch) | |
tree | b60422477450918993bdce27f22cd45d81952bd8 /xeth/xeth.go | |
parent | 81de8ed0912f767b2e3104aaad5c7f31920aaf2a (diff) | |
parent | 79828531b1e6a1d5073f45e0e672c54a019de7c0 (diff) | |
download | go-tangerine-118ad22ee59658ec8ff476999e48d9bffb0c7db6.tar go-tangerine-118ad22ee59658ec8ff476999e48d9bffb0c7db6.tar.gz go-tangerine-118ad22ee59658ec8ff476999e48d9bffb0c7db6.tar.bz2 go-tangerine-118ad22ee59658ec8ff476999e48d9bffb0c7db6.tar.lz go-tangerine-118ad22ee59658ec8ff476999e48d9bffb0c7db6.tar.xz go-tangerine-118ad22ee59658ec8ff476999e48d9bffb0c7db6.tar.zst go-tangerine-118ad22ee59658ec8ff476999e48d9bffb0c7db6.zip |
Merge branch 'develop' into rpcfabian
Diffstat (limited to 'xeth/xeth.go')
-rw-r--r-- | xeth/xeth.go | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go index 1b6b1ccd0..6c9db16c2 100644 --- a/xeth/xeth.go +++ b/xeth/xeth.go @@ -308,21 +308,19 @@ func (self *XEth) NumberToHuman(balance string) string { } func (self *XEth) StorageAt(addr, storageAddr string) string { - storage := self.State().SafeGet(addr).StorageString(storageAddr) - - return common.ToHex(storage.Bytes()) + return common.ToHex(self.State().state.GetState(common.HexToAddress(addr), common.HexToHash(storageAddr))) } func (self *XEth) BalanceAt(addr string) string { - return self.State().SafeGet(addr).Balance().String() + return common.ToHex(self.State().state.GetBalance(common.HexToAddress(addr)).Bytes()) } func (self *XEth) TxCountAt(address string) int { - return int(self.State().SafeGet(address).Nonce()) + return int(self.State().state.GetNonce(common.HexToAddress(address))) } func (self *XEth) CodeAt(address string) string { - return common.ToHex(self.State().SafeGet(address).Code()) + return common.ToHex(self.State().state.GetCode(common.HexToAddress(address))) } func (self *XEth) CodeAtBytes(address string) []byte { |