diff --git a/actuator/src/main/java/org/tron/core/actuator/ExchangeCreateActuator.java b/actuator/src/main/java/org/tron/core/actuator/ExchangeCreateActuator.java index 07fbe9c8ba5..86199c16f31 100755 --- a/actuator/src/main/java/org/tron/core/actuator/ExchangeCreateActuator.java +++ b/actuator/src/main/java/org/tron/core/actuator/ExchangeCreateActuator.java @@ -176,12 +176,10 @@ public boolean validate() throws ContractValidateException { long secondTokenBalance = contract.getSecondTokenBalance(); if (dynamicStore.getAllowSameTokenName() == 1) { - if (!Arrays.equals(firstTokenID, TRX_SYMBOL_BYTES) - && !isNumber(firstTokenID)) { + if (!Arrays.equals(firstTokenID, TRX_SYMBOL_BYTES) && !isNumber(firstTokenID)) { throw new ContractValidateException("first token id is not a valid number"); } - if (!Arrays.equals(secondTokenID, TRX_SYMBOL_BYTES) - && !isNumber(secondTokenID)) { + if (!Arrays.equals(secondTokenID, TRX_SYMBOL_BYTES) && !isNumber(secondTokenID)) { throw new ContractValidateException("second token id is not a valid number"); } }