diff --git a/src/bindings/java/in3/eth1/Log.java b/src/bindings/java/in3/eth1/Log.java index 7b679e695..9c32b4514 100644 --- a/src/bindings/java/in3/eth1/Log.java +++ b/src/bindings/java/in3/eth1/Log.java @@ -87,7 +87,7 @@ public int getLogIndex() { * integer of the transactions index position log was created from. null when * its pending log. */ - public int gettTansactionIndex() { + public int getTransactionIndex() { return JSON.asInt(data.get("transactionIndex")); } @@ -132,4 +132,11 @@ public String[] getTopics() { return data.getStringArray("topics"); } + /* + * data param of Log (contains the non-indexed arguments of the log) + */ + public String getLogData() { + return data.getString("data"); + } + } diff --git a/src/bindings/java/in3/eth1/LogFilter.java b/src/bindings/java/in3/eth1/LogFilter.java index 5a0daeb73..af5a3ab74 100644 --- a/src/bindings/java/in3/eth1/LogFilter.java +++ b/src/bindings/java/in3/eth1/LogFilter.java @@ -118,7 +118,7 @@ public String toString() { if (toBlock >= 0) JSON.appendKey(sb, "toBlock", "0x" + Long.toHexString(toBlock)); if (topics != null) - JSON.appendKey(sb, "topics", JSON.toJson(topics)); + JSON.appendKey(sb, "topics", topics); if (limit > 0) JSON.appendKey(sb, "limit", JSON.asString(limit)); if (address != null)