From eaeb921117f8f42a6139651852acd38039d99c61 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Mon, 23 Aug 2021 11:10:23 +0530 Subject: [PATCH 1/3] solidity default version updated to 0.8.7 --- apps/remix-ide-e2e/src/tests/debugger.spec.ts | 2 +- apps/remix-ide-e2e/src/tests/solidityImport.spec.ts | 2 +- apps/remix-ide-e2e/src/tests/transactionExecution.spec.ts | 2 +- apps/remix-ide/ci/makeMockCompiler.js | 2 +- libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx | 2 +- package.json | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/debugger.spec.ts b/apps/remix-ide-e2e/src/tests/debugger.spec.ts index 76d24d06a8..5cb74235d0 100644 --- a/apps/remix-ide-e2e/src/tests/debugger.spec.ts +++ b/apps/remix-ide-e2e/src/tests/debugger.spec.ts @@ -212,7 +212,7 @@ module.exports = { 'Should start debugging using remix debug nodes (rinkeby)': '' + function (browser: NightwatchBrowser) { browser .clickLaunchIcon('solidity') - .setSolidityCompilerVersion('soljson-v0.8.4+commit.c7e474f2.js') + .setSolidityCompilerVersion('soljson-v0.8.7+commit.e28d00a7.js') .addFile('useDebugNodes.sol', sources[5]['useDebugNodes.sol']) // compile contract .clickLaunchIcon('udapp') .click('*[data-id="settingsWeb3Mode"]') // select web3 provider with debug nodes URL diff --git a/apps/remix-ide-e2e/src/tests/solidityImport.spec.ts b/apps/remix-ide-e2e/src/tests/solidityImport.spec.ts index 74f99edeae..8b435c7945 100644 --- a/apps/remix-ide-e2e/src/tests/solidityImport.spec.ts +++ b/apps/remix-ide-e2e/src/tests/solidityImport.spec.ts @@ -80,7 +80,7 @@ module.exports = { 'Test NPM Import (with unpkg.com)': function (browser: NightwatchBrowser) { browser - .setSolidityCompilerVersion('soljson-v0.8.4+commit.c7e474f2.js') + .setSolidityCompilerVersion('soljson-v0.8.7+commit.e28d00a7.js') .clickLaunchIcon('filePanel') .click('li[data-id="treeViewLitreeViewItemREADME.txt"') .addFile('Untitled9.sol', sources[8]['Untitled9.sol']) diff --git a/apps/remix-ide-e2e/src/tests/transactionExecution.spec.ts b/apps/remix-ide-e2e/src/tests/transactionExecution.spec.ts index d06c1c1c9d..7dfbd968e9 100644 --- a/apps/remix-ide-e2e/src/tests/transactionExecution.spec.ts +++ b/apps/remix-ide-e2e/src/tests/transactionExecution.spec.ts @@ -264,7 +264,7 @@ contract C { 'customError.sol': { content: `// SPDX-License-Identifier: GPL-3.0 - pragma solidity ^0.8.4; + pragma solidity ^0.8.7; /// error description /// @param a param1 diff --git a/apps/remix-ide/ci/makeMockCompiler.js b/apps/remix-ide/ci/makeMockCompiler.js index b73c2b7ae1..fe55444109 100644 --- a/apps/remix-ide/ci/makeMockCompiler.js +++ b/apps/remix-ide/ci/makeMockCompiler.js @@ -3,7 +3,7 @@ var fs = require('fs') var compiler = require('solc') var compilerInput = require('@remix-project/remix-solidity').CompilerInput -var defaultVersion = 'soljson-v0.8.4+commit.c7e474f2.js' +var defaultVersion = 'soljson-v0.8.7+commit.e28d00a7.js' const path = require('path') compiler.loadRemoteVersion(defaultVersion, (error, solcSnapshot) => { diff --git a/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx b/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx index 104a515a39..52f52bb844 100644 --- a/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx +++ b/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx @@ -28,7 +28,7 @@ export const CompilerContainer = (props: CompilerContainerProps) => { allversions: [], customVersions: [], selectedVersion: null, - defaultVersion: 'soljson-v0.8.4+commit.c7e474f2.js', // this default version is defined: in makeMockCompiler (for browser test) + defaultVersion: 'soljson-v0.8.7+commit.e28d00a7.js', // this default version is defined: in makeMockCompiler (for browser test) selectedLanguage: '', runs: '', compiledFileName: '', diff --git a/package.json b/package.json index 868baa78bb..d650d1452e 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "bumpVersion:libs": "gulp & gulp syncLibVersions;", "browsertest": "sleep 5 && npm run nightwatch_local", "csslint": "csslint --ignore=order-alphabetical --errors='errors,duplicate-properties,empty-rules' --exclude-list='apps/remix-ide/src/assets/css/font-awesome.min.css' apps/remix-ide/src/assets/css/", - "downloadsolc_assets": "wget --no-check-certificate https://binaries.soliditylang.org/wasm/soljson-v0.8.4+commit.c7e474f2.js -O ./apps/remix-ide/src/assets/js/soljson.js", + "downloadsolc_assets": "wget --no-check-certificate https://binaries.soliditylang.org/wasm/soljson-v0.8.7+commit.e28d00a7.js -O ./apps/remix-ide/src/assets/js/soljson.js", "make-mock-compiler": "node apps/remix-ide/ci/makeMockCompiler.js", "minify": "uglifyjs --in-source-map inline --source-map-inline -c warnings=false", "nightwatch_parallel": "npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js --env=chrome,firefox", From f2bf0fdf1c68e1bf27164f0f70954844a675007b Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Mon, 23 Aug 2021 11:12:35 +0530 Subject: [PATCH 2/3] london added as EVM version --- libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx b/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx index 52f52bb844..dcf0adfc61 100644 --- a/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx +++ b/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx @@ -534,6 +534,7 @@ export const CompilerContainer = (props: CompilerContainerProps) => {