File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
framework/src/main/java/org/tron/core/services/http Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 45
45
import org .tron .protos .Protocol .Transaction .Contract .ContractType ;
46
46
import org .tron .protos .contract .SmartContractOuterClass .CreateSmartContract ;
47
47
48
- import static org .apache .commons .lang3 .StringUtils .isNotBlank ;
49
- import static org .apache .commons .lang3 .StringUtils .startsWith ;
50
48
51
49
@ Slf4j (topic = "API" )
52
50
public class Util {
@@ -442,8 +440,8 @@ public static byte[] getAddress(HttpServletRequest request) throws Exception {
442
440
byte [] address = null ;
443
441
String addressParam = "address" ;
444
442
String addressStr = request .getParameter (addressParam );
445
- if (isNotBlank (addressStr )) {
446
- if (startsWith (addressStr ,
443
+ if (org . apache . commons . lang3 . StringUtils . isNotBlank (addressStr )) {
444
+ if (org . apache . commons . lang3 . StringUtils . startsWith (addressStr ,
447
445
Constant .ADD_PRE_FIX_STRING_MAINNET )) {
448
446
address = Hex .decode (addressStr );
449
447
} else {
You can’t perform that action at this time.
0 commit comments