From 2b813dca03f8f073bda722c526d445c12e694512 Mon Sep 17 00:00:00 2001 From: Uellington Damasceno Date: Thu, 28 Nov 2024 01:37:06 -0300 Subject: [PATCH] If applied, this commit will change json request body from payload to data. --- src/main/java/dlt/client/tangle/hornet/model/LedgerWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dlt/client/tangle/hornet/model/LedgerWriter.java b/src/main/java/dlt/client/tangle/hornet/model/LedgerWriter.java index e850aa5..bd9598e 100644 --- a/src/main/java/dlt/client/tangle/hornet/model/LedgerWriter.java +++ b/src/main/java/dlt/client/tangle/hornet/model/LedgerWriter.java @@ -123,7 +123,7 @@ public void createMessage(String index, String data) { connection.setDoOutput(true); String requestBody = String.format( - "{\"index\": \"%s\",\"payload\": %s}", + "{\"index\": \"%s\",\"data\": %s}", index, data );