Skip to content

Commit

Permalink
fix deploy and commend
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeNinjaEvan committed Mar 18, 2020
1 parent 0547b04 commit 3d52196
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions sun-cli/src/main/java/org/tron/walletcli/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -1912,9 +1912,6 @@ private List<String> getAllMainCmds() {
allCmds.add("votewitness");
allCmds.add("freezebalance");
allCmds.add("unfreezebalance");
allCmds.add("buystorage");
allCmds.add("buystoragebytes");
allCmds.add("sellstorage");
allCmds.add("withdrawbalance");
allCmds.add("unfreezeasset");
allCmds.add("createproposal");
Expand Down
2 changes: 1 addition & 1 deletion sun-sdk/src/main/java/org/tron/sunapi/Chain.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public SunNetworkResponse<TransactionResponse> deployContract(DeployContractRequ
}

try {
if (StringUtils.isNotEmpty(constructorStr)) {
if (StringUtils.isNotEmpty(constructorStr) && !constructorStr.equals("#")) {
if (isHex) {
codeStr += argsStr;
} else {
Expand Down

0 comments on commit 3d52196

Please sign in to comment.