Skip to content

Commit 7cdac87

Browse files
author
neo hong
committed
support call receive by input #
1 parent dc701d9 commit 7cdac87

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/org/tron/walletcli/Client.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2198,7 +2198,10 @@ private void triggerContract(String[] parameters, boolean isConstant)
21982198
if (tokenId.equalsIgnoreCase("#")) {
21992199
tokenId = "";
22002200
}
2201-
byte[] input = Hex.decode(AbiUtil.parseMethod(methodStr, argsStr, isHex));
2201+
byte[] input = new byte[0];
2202+
if (!methodStr.equalsIgnoreCase("#")) {
2203+
input = Hex.decode(AbiUtil.parseMethod(methodStr, argsStr, isHex));
2204+
}
22022205
byte[] contractAddress = WalletApi.decodeFromBase58Check(contractAddrStr);
22032206

22042207
boolean result = walletApiWrapper

0 commit comments

Comments
 (0)