aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/state_object.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-04-27 22:50:44 +0800
committerobscuren <geffobscura@gmail.com>2014-04-27 22:53:35 +0800
commit16e52327a4baa5547c38965fce53b3ff40b98173 (patch)
tree27fb43512c802e2c3c0fe8bd8d97a55aa2499758 /ethchain/state_object.go
parent05d2d8f27d0bea5b20be9bc3b4a259a12298ecab (diff)
downloaddexon-16e52327a4baa5547c38965fce53b3ff40b98173.tar.gz
dexon-16e52327a4baa5547c38965fce53b3ff40b98173.tar.zst
dexon-16e52327a4baa5547c38965fce53b3ff40b98173.zip
Upped version number
Diffstat (limited to 'ethchain/state_object.go')
-rw-r--r--ethchain/state_object.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/ethchain/state_object.go b/ethchain/state_object.go
index 8d86ef44e..8e921795d 100644
--- a/ethchain/state_object.go
+++ b/ethchain/state_object.go
@@ -65,6 +65,10 @@ func (c *StateObject) State() *State {
return c.state
}
+func (c *StateObject) N() *big.Int {
+ return big.NewInt(int64(c.Nonce))
+}
+
func (c *StateObject) Addr(addr []byte) *ethutil.Value {
return ethutil.NewValueFromBytes([]byte(c.state.trie.Get(string(addr))))
}