diff options
author | zsfelfoldi <zsfelfoldi@gmail.com> | 2015-04-07 17:50:17 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2015-04-20 03:57:49 +0800 |
commit | b635cad9fe127e6b0ca6d993ce9a3b6c61ce79c6 (patch) | |
tree | 81d44673f4510e13f85f9aa9d5e0009b6638eacd /rpc | |
parent | 94489b2269133c545aa3e9580737b2bd93f3ead0 (diff) | |
download | dexon-b635cad9fe127e6b0ca6d993ce9a3b6c61ce79c6.tar dexon-b635cad9fe127e6b0ca6d993ce9a3b6c61ce79c6.tar.gz dexon-b635cad9fe127e6b0ca6d993ce9a3b6c61ce79c6.tar.bz2 dexon-b635cad9fe127e6b0ca6d993ce9a3b6c61ce79c6.tar.lz dexon-b635cad9fe127e6b0ca6d993ce9a3b6c61ce79c6.tar.xz dexon-b635cad9fe127e6b0ca6d993ce9a3b6c61ce79c6.tar.zst dexon-b635cad9fe127e6b0ca6d993ce9a3b6c61ce79c6.zip |
NatSpec passing end to end test
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/api.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/rpc/api.go b/rpc/api.go index c02b03fb6..66283752b 100644 --- a/rpc/api.go +++ b/rpc/api.go @@ -168,11 +168,8 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err } // call ConfirmTransaction first - var obj []json.RawMessage - if err := json.Unmarshal(req.Params, &obj); err != nil { - return NewDecodeParamError(err.Error()) - } - if !api.xeth().ConfirmTransaction(string(obj[0])) { + tx, _ := json.Marshal(req) + if !api.xeth().ConfirmTransaction(string(tx)) { return fmt.Errorf("Transaction not confirmed") } |