Skip to content

Commit 4797143

Browse files
authored
Merge pull request tronprotocol#2008 from tronprotocol/hotfix/updatewitness
fix: fix contract type error
2 parents c1abeee + fe0100b commit 4797143

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/tron/core/services/http/UpdateWitnessServlet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected void doPost(HttpServletRequest request, HttpServletResponse response)
3333
WitnessUpdateContract.Builder build = WitnessUpdateContract.newBuilder();
3434
JsonFormat.merge(contract, build);
3535
Transaction tx = wallet
36-
.createTransactionCapsule(build.build(), ContractType.AssetIssueContract).getInstance();
36+
.createTransactionCapsule(build.build(), ContractType.WitnessUpdateContract).getInstance();
3737
response.getWriter().println(Util.printTransaction(tx));
3838
} catch (Exception e) {
3939
logger.debug("Exception: {}", e.getMessage());

0 commit comments

Comments
 (0)