Skip to content

Commit 6388767

Browse files
committed
Fix call output when empty
1 parent ec6cbb9 commit 6388767

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎rpc/api.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
182182
if err != nil {
183183
return err
184184
}
185-
186-
*reply = v
185+
// TODO unwrap the parent method's ToHex call
186+
*reply = newHexData(common.FromHex(v))
187187
case "eth_flush":
188188
return NewNotImplementedError(req.Method)
189189
case "eth_getBlockByHash":

0 commit comments

Comments
 (0)