feat: support multiple version solc and dev doc#846
Conversation
HelloAldis
commented
Apr 28, 2024
- support multiple version solc in console contract2java、deploy contract
- support solidity devdoc for contract2java
|
| String smBinFilePath = smBinFile.getAbsolutePath(); | ||
| FileUtils.writeStringToFile( | ||
| new File(abiDir + "/sm/" + contractName + ".abi"), abiAndBin.getAbi()); | ||
| FileUtils.writeStringToFile(smAbiFile, abiAndBin.getAbi()); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation
|
|
||
| File devdocFile = new File(docDir + contractName + ".devdoc"); | ||
| if (!StringUtils.isEmpty(abiAndBin.getDevdoc())) { | ||
| FileUtils.writeStringToFile(devdocFile, abiAndBin.getDevdoc()); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation
| logger.info( | ||
| "deploy contract {} with '--parallel-analysis' or '-p'", contractName); | ||
| inputParams.remove(lastIndexOf); | ||
| logger.info("deploy contract {} with '-p'", contractName); |
Check failure
Code scanning / CodeQL
Insertion of sensitive information into log files
| if (lastIndexOf != -1) { | ||
| isContractParallelAnalysis = true; | ||
| inputParams.remove(lastIndexOf); | ||
| logger.info("deploy contract {} with '--parallel-analysis'", contractName); |
Check failure
Code scanning / CodeQL
Insertion of sensitive information into log files
| version = ConsoleUtils.convertStringToVersion(inputParams.get(lastIndexOf + 1)); | ||
| inputParams.remove(lastIndexOf); | ||
| inputParams.remove(lastIndexOf); | ||
| logger.info("deploy contract {} with '-v'", contractName); |
Check failure
Code scanning / CodeQL
Insertion of sensitive information into log files
| version = ConsoleUtils.convertStringToVersion(inputParams.get(lastIndexOf + 1)); | ||
| inputParams.remove(lastIndexOf); | ||
| inputParams.remove(lastIndexOf); | ||
| logger.info("deploy contract {} with '--sol-version'", contractName); |
Check failure
Code scanning / CodeQL
Insertion of sensitive information into log files
| logger.debug( | ||
| "compileSolToBinAndAbi, solc version:{} ,basePath: {}", | ||
| Version.V0_8_11, | ||
| solFile.getParentFile().getCanonicalPath()); |
Check failure
Code scanning / CodeQL
Insertion of sensitive information into log files



