diff options
author | obscuren <geffobscura@gmail.com> | 2014-07-30 06:31:15 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-07-30 06:31:15 +0800 |
commit | 1f9894c0845a5259adbfd30fe3a86631e6403b8d (patch) | |
tree | 7e038ca62c65482d576d3a8b3fde5419ac866f2f /ethpub | |
parent | 27f892265312255811867fab83acbeefa1626cec (diff) | |
download | go-tangerine-1f9894c0845a5259adbfd30fe3a86631e6403b8d.tar go-tangerine-1f9894c0845a5259adbfd30fe3a86631e6403b8d.tar.gz go-tangerine-1f9894c0845a5259adbfd30fe3a86631e6403b8d.tar.bz2 go-tangerine-1f9894c0845a5259adbfd30fe3a86631e6403b8d.tar.lz go-tangerine-1f9894c0845a5259adbfd30fe3a86631e6403b8d.tar.xz go-tangerine-1f9894c0845a5259adbfd30fe3a86631e6403b8d.tar.zst go-tangerine-1f9894c0845a5259adbfd30fe3a86631e6403b8d.zip |
Old code removed and renamed amount to balance
Diffstat (limited to 'ethpub')
-rw-r--r-- | ethpub/types.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ethpub/types.go b/ethpub/types.go index 5cfa2705e..faf75bbe1 100644 --- a/ethpub/types.go +++ b/ethpub/types.go @@ -3,12 +3,13 @@ package ethpub import ( "encoding/json" "fmt" + "strings" + "github.com/ethereum/eth-go/ethchain" "github.com/ethereum/eth-go/ethcrypto" "github.com/ethereum/eth-go/ethstate" "github.com/ethereum/eth-go/ethtrie" "github.com/ethereum/eth-go/ethutil" - "strings" ) // Peer interface exposed to QML @@ -175,9 +176,9 @@ func (c *PStateObject) GetStorage(address string) string { return "" } -func (c *PStateObject) Value() string { +func (c *PStateObject) Balance() string { if c.object != nil { - return c.object.Amount.String() + return c.object.Balance.String() } return "" |