-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Load wasm builds if available #2828
Conversation
31bf2d1
to
d6ae32a
Compare
@@ -25,7 +24,8 @@ class CompilerContainer { | |||
allversions: null, | |||
selectedVersion: null, | |||
defaultVersion: 'soljson-v0.6.6+commit.6c089d02.js', // this default version is defined: in makeMockCompiler (for browser test) and in package.json (downloadsolc_root) for the builtin compiler | |||
baseurl: 'https://solc-bin.ethereum.org/bin' | |||
baseURLWasm: baseURLWasm, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you don't need to make it a data property, you are importing it
async fetchAllVersion (callback) { | ||
let allVersions, selectedVersion, allVersionsWasm | ||
// fetch normal builds | ||
const binRes = await promisedMiniXhr(`${this.data.baseURLBin}/list.json`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const binRes = await promisedMiniXhr(
${baseURLBin}/list.json)
instead?
do we need new e2e tests or is this already tested? |
08ebeaa
to
de620d0
Compare
I've added some. Please take a look at diff, Feel free to share more ideas on how to test it if you have any. |
browser | ||
.clickLaunchIcon('solidity') | ||
.setSolidityCompilerVersion(version) | ||
.waitForElementPresent('*[data-id="compiledErrors"]') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is everything recompiled after version is changed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any ideas on how I can check that besides waiting ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you run it locally you'll see it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes but is there a way to assert it?
package.json
Outdated
@@ -81,6 +81,7 @@ | |||
"dependencies": { | |||
"@remixproject/engine": "^0.2.3", | |||
"http-server": "^0.11.1", | |||
"selenium": "^2.20.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure you need that here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something went wrong while I was trying to test locally :). Will remove this. Thanks
0ff6e1a
to
164a50d
Compare
fix https://github.com/ethereum/remix-ide/issues/2822