aboutsummaryrefslogtreecommitdiffstats
path: root/ethstate/state.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-30 06:31:15 +0800
committerobscuren <geffobscura@gmail.com>2014-07-30 06:31:15 +0800
commit1f9894c0845a5259adbfd30fe3a86631e6403b8d (patch)
tree7e038ca62c65482d576d3a8b3fde5419ac866f2f /ethstate/state.go
parent27f892265312255811867fab83acbeefa1626cec (diff)
downloadgo-tangerine-1f9894c0845a5259adbfd30fe3a86631e6403b8d.tar.gz
go-tangerine-1f9894c0845a5259adbfd30fe3a86631e6403b8d.tar.zst
go-tangerine-1f9894c0845a5259adbfd30fe3a86631e6403b8d.zip
Old code removed and renamed amount to balance
Diffstat (limited to 'ethstate/state.go')
-rw-r--r--ethstate/state.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/ethstate/state.go b/ethstate/state.go
index 51b585d4d..693a591c3 100644
--- a/ethstate/state.go
+++ b/ethstate/state.go
@@ -1,11 +1,12 @@
package ethstate
import (
+ "math/big"
+
"github.com/ethereum/eth-go/ethcrypto"
"github.com/ethereum/eth-go/ethlog"
"github.com/ethereum/eth-go/ethtrie"
"github.com/ethereum/eth-go/ethutil"
- "math/big"
)
var statelogger = ethlog.NewLogger("STATE")
@@ -33,7 +34,7 @@ func NewState(trie *ethtrie.Trie) *State {
func (self *State) GetBalance(addr []byte) *big.Int {
stateObject := self.GetStateObject(addr)
if stateObject != nil {
- return stateObject.Amount
+ return stateObject.Balance
}
return ethutil.Big0