aboutsummaryrefslogtreecommitdiffstats
path: root/xeth
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-02-20 21:19:34 +0800
committerobscuren <geffobscura@gmail.com>2015-02-20 21:19:34 +0800
commitea9a549bbdc8377bca73f1417f2dc4a18396a382 (patch)
treef4f8719ad52f17b3db4b26626a9f5932870f9009 /xeth
parent5c975dd4ed7adb29453fa28e64c0193d323cae99 (diff)
downloaddexon-ea9a549bbdc8377bca73f1417f2dc4a18396a382.tar
dexon-ea9a549bbdc8377bca73f1417f2dc4a18396a382.tar.gz
dexon-ea9a549bbdc8377bca73f1417f2dc4a18396a382.tar.bz2
dexon-ea9a549bbdc8377bca73f1417f2dc4a18396a382.tar.lz
dexon-ea9a549bbdc8377bca73f1417f2dc4a18396a382.tar.xz
dexon-ea9a549bbdc8377bca73f1417f2dc4a18396a382.tar.zst
dexon-ea9a549bbdc8377bca73f1417f2dc4a18396a382.zip
Removed exported fields from state object and added proper set/getters
Diffstat (limited to 'xeth')
-rw-r--r--xeth/xeth.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go
index d578c03c9..67dac948c 100644
--- a/xeth/xeth.go
+++ b/xeth/xeth.go
@@ -128,15 +128,15 @@ func (self *XEth) BalanceAt(addr string) string {
}
func (self *XEth) TxCountAt(address string) int {
- return int(self.State().SafeGet(address).Nonce)
+ return int(self.State().SafeGet(address).Nonce())
}
func (self *XEth) CodeAt(address string) string {
- return toHex(self.State().SafeGet(address).Code)
+ return toHex(self.State().SafeGet(address).Code())
}
func (self *XEth) IsContract(address string) bool {
- return len(self.State().SafeGet(address).Code) > 0
+ return len(self.State().SafeGet(address).Code()) > 0
}
func (self *XEth) SecretToAddress(key string) string {