Skip to content

Commit

Permalink
upgrade default version to 0.8.26
Browse files Browse the repository at this point in the history
  • Loading branch information
wenlinlee committed Jun 26, 2024
1 parent cd6ea4b commit 68a208b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/console/common/ConsoleUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ public static void main(String[] args) {
String LIBS_OPTION = "libraries";

String SOL_VERSION_OPTION = "sol-version";
Version DEFAULT_SOL_VERSION = Version.V0_8_11;
Version DEFAULT_SOL_VERSION = Version.V0_8_26;

String BIN_OPTION = "bin";
String SM_BIN_OPTION = "sm-bin";
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/console/contract/ConsoleContractImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ public TransactionResponse deploySolidity(
throws ConsoleMessageException {
try {
boolean isContractParallelAnalysis = false;
Version version = Version.V0_8_11;
Version version = Version.V0_8_26;
if (!inputParams.isEmpty()) {
int lastIndexOf = inputParams.lastIndexOf("-p");
if (lastIndexOf != -1) {
Expand Down Expand Up @@ -1080,7 +1080,7 @@ private String getSolidityAbi(String contractFileName) throws Exception {

logger.debug(
"compileSolToBinAndAbi, solc version:{} ,basePath: {}",
Version.V0_8_11,
Version.V0_8_26,
solFile.getParentFile().getCanonicalPath());
SolidityCompiler.Option basePath =
new SolidityCompiler.CustomOption(
Expand All @@ -1093,7 +1093,7 @@ private String getSolidityAbi(String contractFileName) throws Exception {
solFile,
(client.getCryptoType() == CryptoType.SM_TYPE),
true,
Version.V0_8_11,
Version.V0_8_26,
options.toArray(new SolidityCompiler.Option[0]));

if (logger.isDebugEnabled()) {
Expand Down

0 comments on commit 68a208b

Please sign in to comment.