aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
Diffstat (limited to 'rpc')
-rw-r--r--rpc/api.go7
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")
}