Skip to content

Commit

Permalink
Merge pull request #275 from yanggang-JV/feature/remove-fisco1.3
Browse files Browse the repository at this point in the history
* remove 1.3 code
  • Loading branch information
junqizhang-dev committed Nov 16, 2020
2 parents 8a2e79a + 43f2b6c commit 0cac915
Show file tree
Hide file tree
Showing 51 changed files with 155 additions and 3,789 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ dependencies {
localDeps 'org.projectlombok:lombok:1.18.10'
if (!gradle.startParameter.isOffline()) {
compile logger, lombok, apache_commons, json, mysql_driver, redisson, zxing, rpc, pdfbox, protobuf, caffeine, oval
compile("com.webank:weid-contract-java:1.2.26") {
compile("com.webank:weid-contract-java:1.2.27-rc.4-SNAPSHOT") {
exclude group: "org.slf4j", module: "slf4j-log4j12"
}
compile fileTree(dir: 'lib', include: '*.jar')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import com.webank.weid.config.FiscoConfig;
import com.webank.weid.constant.ErrorCode;
import com.webank.weid.constant.WeIdConstant;
import com.webank.weid.contract.deploy.v1.DeployContractV1;
import com.webank.weid.contract.deploy.v2.DeployContractV2;
import com.webank.weid.exception.WeIdBaseException;

Expand Down Expand Up @@ -86,7 +85,7 @@ public static void main(String[] args) {

public static void deployContract(String privateKey, boolean instantEnable) {
if (fiscoConfig.getVersion().startsWith(WeIdConstant.FISCO_BCOS_1_X_VERSION_PREFIX)) {
DeployContractV1.deployContract(privateKey);
throw new WeIdBaseException(ErrorCode.THIS_IS_UNSUPPORTED);
} else {
DeployContractV2.deployContract(privateKey, fiscoConfig, instantEnable);
}
Expand Down

0 comments on commit 0cac915

Please sign in to comment.