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 /ethrpc | |
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 'ethrpc')
-rw-r--r-- | ethrpc/packages.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ethrpc/packages.go b/ethrpc/packages.go index 0662f0edd..d307d0314 100644 --- a/ethrpc/packages.go +++ b/ethrpc/packages.go @@ -3,10 +3,11 @@ package ethrpc import ( "encoding/json" "errors" - "github.com/ethereum/eth-go/ethpub" - "github.com/ethereum/eth-go/ethutil" "math/big" "strings" + + "github.com/ethereum/eth-go/ethpub" + "github.com/ethereum/eth-go/ethutil" ) type EthereumApi struct { @@ -272,7 +273,7 @@ func (p *EthereumApi) GetBalanceAt(args *GetBalanceArgs, reply *string) error { return err } state := p.ethp.GetStateObject(args.Address) - *reply = NewSuccessRes(BalanceRes{Balance: state.Value(), Address: args.Address}) + *reply = NewSuccessRes(BalanceRes{Balance: state.Balance(), Address: args.Address}) return nil } |