aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-26 20:10:31 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-26 20:10:31 +0800
commitc139af582663d760f58e7b50dcb9f355c47ef47e (patch)
tree3c810319da3bc6e5b67bf34317ddbd1e0b0bfb56 /rpc/api.go
parent4523a00b91dbe98c6cb03acef362c5592973bcd3 (diff)
downloaddexon-c139af582663d760f58e7b50dcb9f355c47ef47e.tar.gz
dexon-c139af582663d760f58e7b50dcb9f355c47ef47e.tar.zst
dexon-c139af582663d760f58e7b50dcb9f355c47ef47e.zip
GetBalanceArgs
Diffstat (limited to 'rpc/api.go')
-rw-r--r--rpc/api.go6
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)