Skip to content
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

Merged
merged 14 commits into from
Jun 4, 2020
Merged

Load wasm builds if available #2828

merged 14 commits into from
Jun 4, 2020

Conversation

LianaHus
Copy link
Collaborator

@LianaHus LianaHus commented May 7, 2020

@LianaHus LianaHus requested a review from yann300 May 7, 2020 17:47
@LianaHus LianaHus force-pushed the wasmBuilds branch 2 times, most recently from 31bf2d1 to d6ae32a Compare May 14, 2020 12:53
@LianaHus LianaHus changed the title using baseURL from single source Load wasm builds if available May 15, 2020
@@ -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,
Copy link
Collaborator

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`)
Copy link
Collaborator

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?

@yann300
Copy link
Collaborator

yann300 commented May 26, 2020

do we need new e2e tests or is this already tested?

@LianaHus LianaHus force-pushed the wasmBuilds branch 2 times, most recently from 08ebeaa to de620d0 Compare May 29, 2020 15:35
@LianaHus
Copy link
Collaborator Author

do we need new e2e tests or is this already tested?

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"]')
Copy link
Collaborator

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?

Copy link
Collaborator Author

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 ?

Copy link
Collaborator

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

Copy link
Collaborator Author

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",
Copy link
Collaborator

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

Copy link
Collaborator Author

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

@LianaHus LianaHus force-pushed the wasmBuilds branch 2 times, most recently from 0ff6e1a to 164a50d Compare June 2, 2020 10:30
@yann300 yann300 merged commit 9e506e9 into master Jun 4, 2020
@yann300 yann300 deleted the wasmBuilds branch June 4, 2020 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Solidity compiler doesn't load wasm builds
2 participants