()
| 135 | } |
| 136 | |
| 137 | func (rpcData *JSONRPCRequest) ToJSONBytesLine() (bytes []byte, err error) { |
| 138 | bytes, err = rpcData.ToJSONBytes() |
| 139 | if err == nil { |
| 140 | bytes = append(bytes, '\n') |
| 141 | } |
| 142 | return |
| 143 | } |
| 144 | |
| 145 | func (rpcData *JSONRPCRequest) ToRPC2JSONBytes() ([]byte, error) { |
| 146 | id := rpcData.ID |
no test coverage detected