diff --git a/core/src/main/java/com/citahub/cita/protocol/core/methods/request/Transaction.java b/core/src/main/java/com/citahub/cita/protocol/core/methods/request/Transaction.java index 2cc8a379..0ae6f5dc 100644 --- a/core/src/main/java/com/citahub/cita/protocol/core/methods/request/Transaction.java +++ b/core/src/main/java/com/citahub/cita/protocol/core/methods/request/Transaction.java @@ -252,6 +252,6 @@ private static String processValue(String value) { } private static String processTo(String to) { - return !Strings.isEmpty(to) && Keys.verifyAddress(to) ? cleanHexPrefix(to).toLowerCase() : ""; + return !Strings.isEmpty(to) && Keys.verifyAddress(to.trim()) ? cleanHexPrefix(to).toLowerCase() : ""; } }