aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-26 20:50:22 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-26 20:50:22 +0800
commitcd6b3fd28a0624ac27cecf9f3e331a027b9c7e67 (patch)
tree9d63d4aa32a4733b83c6434e999fe3da93683e6b /rpc/api.go
parenta49c81547ce32125917c0127c94c9845750e9e30 (diff)
downloaddexon-cd6b3fd28a0624ac27cecf9f3e331a027b9c7e67.tar.gz
dexon-cd6b3fd28a0624ac27cecf9f3e331a027b9c7e67.tar.zst
dexon-cd6b3fd28a0624ac27cecf9f3e331a027b9c7e67.zip
GetDataArgs
Diffstat (limited to 'rpc/api.go')
-rw-r--r--rpc/api.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/rpc/api.go b/rpc/api.go
index aba47eee2..0f5bac657 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -159,10 +159,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
if err := json.Unmarshal(req.Params, &args); err != nil {
return err
}
- if err := args.requirements(); err != nil {
- return err
- }
- *reply = api.xethAtStateNum(args.BlockNumber).CodeAt(args.Address)
+ *reply = api.xethAtStateNum(args.BlockNumber).CodeAt(args.Address.Hex())
case "eth_sendTransaction", "eth_transact":
args := new(NewTxArgs)
if err := json.Unmarshal(req.Params, &args); err != nil {