Skip to content

Commit b96ca92

Browse files
author
renchengchang
committed
address format
1 parent 7c167c3 commit b96ca92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/tron/core/services/http/CreateAddressServlet.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response) {
3535
String hexString = ByteArray.toHexString(address);
3636
JSONObject jsonAddress = new JSONObject();
3737
jsonAddress.put("base58checkAddress", base58check);
38-
jsonAddress.put("hexAddress", hexString);
38+
jsonAddress.put("value", hexString);
3939
response.getWriter().println(jsonAddress.toJSONString());
4040
} catch (Exception e) {
4141
logger.debug("Exception: {}", e.getMessage());
@@ -58,7 +58,7 @@ protected void doPost(HttpServletRequest request, HttpServletResponse response)
5858
String hexString = ByteArray.toHexString(address);
5959
JSONObject jsonAddress = new JSONObject();
6060
jsonAddress.put("base58checkAddress", base58check);
61-
jsonAddress.put("hexAddress", hexString);
61+
jsonAddress.put("value", hexString);
6262
response.getWriter().println(jsonAddress.toJSONString());
6363
} catch (Exception e) {
6464
logger.debug("Exception: {}", e.getMessage());

0 commit comments

Comments
 (0)