aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api.go
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-05-20 11:38:20 +0800
committerzelig <viktor.tron@gmail.com>2015-05-20 11:38:20 +0800
commit00f59f5014360cda47e50d9791caf7dd88022c20 (patch)
tree22a11d9939d76c238b79f8bf54fed4734fd8649c /rpc/api.go
parentb0ae84aa0dae65f00492f981bb61887331def2a5 (diff)
downloadgo-tangerine-00f59f5014360cda47e50d9791caf7dd88022c20.tar.gz
go-tangerine-00f59f5014360cda47e50d9791caf7dd88022c20.tar.zst
go-tangerine-00f59f5014360cda47e50d9791caf7dd88022c20.zip
fix eth.sign. now implemented in admin jsre until web3.js has it .
Diffstat (limited to 'rpc/api.go')
-rw-r--r--rpc/api.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/rpc/api.go b/rpc/api.go
index 4b705c781..2536ffd74 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -158,16 +158,16 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
v := api.xethAtStateNum(args.BlockNumber).CodeAtBytes(args.Address)
*reply = newHexData(v)
- case "eth_sign":
- args := new(NewSigArgs)
- if err := json.Unmarshal(req.Params, &args); err != nil {
- return err
- }
- v, err := api.xeth().Sign(args.From, args.Data, false)
- if err != nil {
- return err
- }
- *reply = v
+ // case "eth_sign":
+ // args := new(NewSigArgs)
+ // if err := json.Unmarshal(req.Params, &args); err != nil {
+ // return err
+ // }
+ // v, err := api.xeth().Sign(args.From, args.Data, false)
+ // if err != nil {
+ // return err
+ // }
+ // *reply = v
case "eth_sendTransaction", "eth_transact":
args := new(NewTxArgs)