Skip to content

Commit

Permalink
Merge pull request #786 from tgerring/issue739
Browse files Browse the repository at this point in the history
Empty Call response should return 0x instead of 0x00. Closes #739
  • Loading branch information
obscuren committed Apr 23, 2015
2 parents 8eefcb8 + 73b3f28 commit 67cc80b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rpc/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,11 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
return err
}
// TODO unwrap the parent method's ToHex call
*reply = newHexData(common.FromHex(v))
if v == "0x0" {
*reply = newHexData([]byte{})
} else {
*reply = newHexData(common.FromHex(v))
}
case "eth_flush":
return NewNotImplementedError(req.Method)
case "eth_getBlockByHash":
Expand Down

0 comments on commit 67cc80b

Please sign in to comment.