Skip to content
This repository has been archived by the owner on Feb 19, 2024. It is now read-only.

Commit

Permalink
Remove boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
siy committed Jun 2, 2021
1 parent 7a79100 commit 01b97cf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,6 @@ public static Result<byte[]> safeBlob(JSONObject params, String name) {
.flatMap(param -> wrap(INVALID_HEX_STRING, () -> Bytes.fromHexString(param)));
}

public static JSONObject parseError(String message) {
return protocolError(RpcError.PARSE_ERROR, message);
}

public static JSONObject methodNotFound(JSONObject request) {
var method = request.getString("method");
return extendedError(request, RpcError.METHOD_NOT_FOUND.code(), "Method " + method + " not found");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

package com.radixdlt.api.controller;

import com.radixdlt.api.AbstractJsonRpcController;
import com.radixdlt.api.AbstractJsonRpcController;
import com.radixdlt.api.server.JsonRpcServer;

Expand Down

0 comments on commit 01b97cf

Please sign in to comment.