From 58f6065791f374e800addb286d263b912cd5eeda Mon Sep 17 00:00:00 2001 From: Kyon <32325790+kyonRay@users.noreply.github.com> Date: Thu, 20 Apr 2023 10:06:25 +0800 Subject: [PATCH] (help): fix system config auth_check_status helper. (#760) --- build.gradle | 4 ++-- src/main/java/console/command/category/BfsCommand.java | 5 +---- src/main/java/console/command/model/HelpInfo.java | 6 +----- src/main/java/console/common/Common.java | 4 +++- 4 files changed, 7 insertions(+), 12 deletions(-) diff --git a/build.gradle b/build.gradle index 05b41092..6e205f4b 100644 --- a/build.gradle +++ b/build.gradle @@ -40,7 +40,7 @@ dependencies { //compile 'org.fisco-bcos:solcJ:0.5.2.1' compile 'org.fisco-bcos:solcJ:0.8.11.1' - compile('org.fisco-bcos.java-sdk:fisco-bcos-java-sdk:3.3.0-SNAPSHOT') { + compile('org.fisco-bcos.java-sdk:fisco-bcos-java-sdk:3.3.0') { exclude group: "org.slf4j" } @@ -51,7 +51,7 @@ dependencies { compile('org.jline:jline:3.21.0') compile('io.bretty:console-table-builder:1.2') compile('com.github.jsqlparser:jsqlparser:2.0') - compile('org.fisco-bcos.code-generator:bcos-code-generator:1.1.0-SNAPSHOT') { + compile('org.fisco-bcos.code-generator:bcos-code-generator:1.1.0') { exclude group: "org.fisco-bcos.java-sdk" exclude group: "org.slf4j" } diff --git a/src/main/java/console/command/category/BfsCommand.java b/src/main/java/console/command/category/BfsCommand.java index c929cd1c..52831bc8 100644 --- a/src/main/java/console/command/category/BfsCommand.java +++ b/src/main/java/console/command/category/BfsCommand.java @@ -97,10 +97,7 @@ public Map getAllCommandInfo(boolean isWasm) { new CommandInfo( "fixBFS", "Fix the bfs bug of the specified version.", - () -> { - System.out.println("Fix the bfs bug of the specified version."); - System.out.println("Fix the bfs bug of the specified version."); - }, + () -> System.out.println("Fix the bfs bug of the specified version."), (consoleInitializer, params, pwd) -> consoleInitializer.getPrecompiledFace().fixBFS(params), 0, diff --git a/src/main/java/console/command/model/HelpInfo.java b/src/main/java/console/command/model/HelpInfo.java index 210c4692..35209d8d 100644 --- a/src/main/java/console/command/model/HelpInfo.java +++ b/src/main/java/console/command/model/HelpInfo.java @@ -379,11 +379,7 @@ public static void systemConfigHelper() { + Common.SYS_CONFIG_RANGE + "(default 1)."); System.out.println( - " -- the value of " - + Common.AUTH_CHECK_STATUS - + " " - + Common.SYS_CONFIG_RANGE - + "(default 0)."); + " -- the value of " + Common.AUTH_CHECK_STATUS + " " + Common.AUTH_CHECK_DESC); } public static void getSystemConfigByKeyHelp() { diff --git a/src/main/java/console/common/Common.java b/src/main/java/console/common/Common.java index 20bbd61f..4e9ce49c 100644 --- a/src/main/java/console/common/Common.java +++ b/src/main/java/console/common/Common.java @@ -35,7 +35,9 @@ private Common() {} public static final String NON_NEGATIVE_INTEGER_RANGE = "from 0 to 2147483647"; public static final String DEPLOY_LOG_INTEGER_RANGE = "from 1 to 100"; public static final String TX_GAS_LIMIT_RANGE = "must be greater than 100000"; - public static final String SYS_CONFIG_RANGE = "must be greater than 1"; + public static final String SYS_CONFIG_RANGE = "must be greater or equal to 1"; + public static final String AUTH_CHECK_DESC = + "means whether to check auth when deploy/call contract, if value>0, check auth, otherwise not check auth."; public static final String COMPATIBILITY_VERSION_DESC = "must be in this format: 3.0.0, 3.1.0, etc. Latest version now is " + ConsoleVersion.Version;