mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-01 09:03:48 +00:00
Handle bug in parent call response
This commit is contained in:
parent
5f6c8832af
commit
73b3f2837f
1 changed files with 5 additions and 1 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Reference in a new issue