From 43282a32019ad9c58af638755e1d2a57193794eb Mon Sep 17 00:00:00 2001 From: "Frank.R.Wu" Date: Wed, 29 Dec 2021 20:24:03 +0800 Subject: [PATCH] feat: remove txHash in REvent.getContentStr remove txHash in REvent.getContentStr to suit EventRecorder --- src/main/base/org/bdware/sc/event/REvent.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/base/org/bdware/sc/event/REvent.java b/src/main/base/org/bdware/sc/event/REvent.java index cb71895..dfcbaef 100644 --- a/src/main/base/org/bdware/sc/event/REvent.java +++ b/src/main/base/org/bdware/sc/event/REvent.java @@ -91,13 +91,12 @@ public class REvent extends SM2Verifiable implements Serializable { @Override public String getContentStr() { return String.format("{\"topic\":\"%s\",\"content\":\"%s\",\"type\":\"%s\"," + - "\"semantics\":\"%s\",\"requestID\":\"%s\",\"txHash\":\"%s\"}", + "\"semantics\":\"%s\",\"requestID\":\"%s\"}", topic, content, type, semantics, - requestID, - (null == txHash ? "" : txHash)); + requestID); } public enum REventType {