File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/org/tron/walletcli Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2111,11 +2111,11 @@ private void deployContract(String[] parameter)
21112111 System .out .println ("origin_energy_limit must > 0" );
21122112 return ;
21132113 }
2114- if (!constructorStr .equals ("#" )) {
2114+ if (!( constructorStr .equals ("#" ) || argsStr . equals ( "#" ) )) {
21152115 if (isHex ) {
21162116 codeStr += argsStr ;
21172117 } else {
2118- codeStr += AbiUtil .parseMethod (constructorStr , argsStr );
2118+ codeStr += Hex . toHexString ( AbiUtil .encodeInput (constructorStr , argsStr ) );
21192119 }
21202120 }
21212121 long value = 0 ;
@@ -3704,7 +3704,7 @@ public static String[] getCmd(String cmdLine) {
37043704 || cmdLine .toLowerCase ().startsWith ("triggercontract" )
37053705 || cmdLine .toLowerCase ().startsWith ("triggerconstantcontract" )
37063706 || cmdLine .toLowerCase ().startsWith ("updateaccountpermission" )) {
3707- return cmdLine .split (" " , -1 );
3707+ return cmdLine .split ("\\ s+ " , -1 );
37083708 }
37093709 String [] strArray = cmdLine .split ("\" " );
37103710 int num = strArray .length ;
You can’t perform that action at this time.
0 commit comments