We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 131161e commit 495f7acCopy full SHA for 495f7ac
1 file changed
framework/src/main/java/org/tron/core/services/http/TriggerSmartContractServlet.java
@@ -41,11 +41,6 @@ private void validateParameter(String contract) {
41
if (StringUtil.isNullOrEmpty(jsonObject.getString(Util.CONTRACT_ADDRESS))) {
42
throw new InvalidParameterException(Util.CONTRACT_ADDRESS + " isn't set.");
43
}
44
- if (!StringUtil.isNullOrEmpty(jsonObject.getString(Util.FUNCTION_SELECTOR))
45
- ^ StringUtil.isNullOrEmpty(jsonObject.getString(Util.CALL_DATA))) {
46
- throw new InvalidParameterException("Only one of "
47
- + Util.FUNCTION_SELECTOR + " and " + Util.CALL_DATA + " can be set.");
48
- }
49
50
51
protected void doPost(HttpServletRequest request, HttpServletResponse response)
0 commit comments