solc-js icon indicating copy to clipboard operation
solc-js copied to clipboard

Implements solc-latest feature for nightly builds

Open ProphetDaniel opened this issue 6 years ago • 5 comments

This implements latest solc feature and can be used to test nightly builds.

ProphetDaniel avatar Apr 15 '18 21:04 ProphetDaniel

Actually this shouldn't be merged to master branch but a new solc-latest branch should actually be created to handle this functionality.

ProphetDaniel avatar Apr 15 '18 21:04 ProphetDaniel

Can you please explain what is the goal of this PR?

axic avatar Apr 15 '18 22:04 axic

@axic, the goal is to have a packaged solc node module updated once every nightly build, which would be automatically triggered by nightly builds. So this one downloads the latest nightly version instead of package.json indicated release version.

ProphetDaniel avatar Apr 16 '18 01:04 ProphetDaniel

I think this may be better done with promoting the loadRemoteVersion feature to work with nightlies.

axic avatar Apr 16 '18 18:04 axic

Well thought!

ProphetDaniel avatar Apr 17 '18 00:04 ProphetDaniel

Hi, thank you very much for the PR, and sorry for the late reply. But I will be closing this PR now since this feature is already supported in the current version.

You can use it like so:

solc.loadRemoteVersion("v0.8.15-nightly.2022.5.27+commit.095cc647", (err, compiler) => {
    console.log(compiler.version())
})

r0qs avatar Sep 28 '22 11:09 r0qs