diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-26 20:10:31 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-26 20:10:31 +0800 |
commit | c139af582663d760f58e7b50dcb9f355c47ef47e (patch) | |
tree | 3c810319da3bc6e5b67bf34317ddbd1e0b0bfb56 /rpc/api.go | |
parent | 4523a00b91dbe98c6cb03acef362c5592973bcd3 (diff) | |
download | dexon-c139af582663d760f58e7b50dcb9f355c47ef47e.tar dexon-c139af582663d760f58e7b50dcb9f355c47ef47e.tar.gz dexon-c139af582663d760f58e7b50dcb9f355c47ef47e.tar.bz2 dexon-c139af582663d760f58e7b50dcb9f355c47ef47e.tar.lz dexon-c139af582663d760f58e7b50dcb9f355c47ef47e.tar.xz dexon-c139af582663d760f58e7b50dcb9f355c47ef47e.tar.zst dexon-c139af582663d760f58e7b50dcb9f355c47ef47e.zip |
GetBalanceArgs
Diffstat (limited to 'rpc/api.go')
-rw-r--r-- | rpc/api.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/rpc/api.go b/rpc/api.go index 6f3e78cc0..aba47eee2 100644 --- a/rpc/api.go +++ b/rpc/api.go @@ -94,11 +94,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err return err } - if err := args.requirements(); err != nil { - return err - } - - v := api.xethAtStateNum(args.BlockNumber).State().SafeGet(args.Address).Balance() + v := api.xethAtStateNum(args.BlockNumber).State().SafeGet(args.Address.Hex()).Balance() *reply = common.ToHex(v.Bytes()) case "eth_getStorage", "eth_storageAt": args := new(GetStorageArgs) |