-
Notifications
You must be signed in to change notification settings - Fork 478
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
solc-bin issue: one commit for different versions? #231
Comments
This is very old code. My guess would be that the date is part of the version string and thus the binaries are different, but we did not have a very reproducible build system back in the days anyway. |
@chriseth thank you for answer. Can you answer for yet one question: some of the commit hashes have length 6 or 7 symbols, instead 8. Is this related with build system in old days? Right now all versions will have 8 symbols, right? |
It should be due to the old one. Github uses 7 characters, but I think we've settled on 8 as it is less weird. |
Note that due to the fact that we are using semver, leading zeros in the commit hash have to be omitted after the |
The thing is that the filename should match exactly the string reported by the version function of the binary. |
It doesn't. We have unified the filenames, before there was the comprehensive @fanatid why in the first place do you want to rely on the filenames? |
Wow, I did not knew that leading zeros in hash is omitted... but I had check: I can do bypass in my project (may be you will be interesting btw -- https://github.com/fanatid/ethereum-verified-contracts), but I'd prefer fix hashes in solc-bin. I also found, that if I compile few different contracts, solc can return wrong bytecode. https://github.com/fanatid/ethereum-verified-contracts/blob/a1caf307292f9a1f10be9e5b0b5556679c5fa1df/bin/verify.js#L180 |
@axic I also would like move verified contracts to ethereum organization, I think this will helpful to many devs. We will add CI/UI later. |
Problem with hashes that I parse etherscan and can not find right solc version in solc-bin. I decide use only first 7 symbols, but |
Oh wow that's a great project! Are you using the address or the metadata? Perhaps we should schedule a call. Do you want to come to http://gitter.im/ethereum/solidity-dev to discuss? |
Sorry, this is not clear, can you elaborate? |
Btw, somewhat related, here is a semver converter, which supports all irregular ones from the past: https://github.com/ethereum/solc-js/blob/master/translate.js#L3 I've created a PR to insert |
Yes, this is one of them items why I verify contracts (i.e. load specific solc version) in child process ;) |
Two files in bin folder with same commit but with different content, is it was error or was made intentionally?
Also, few files have stable and nightly builds:
7dab890
,4dc1cb1
,81ae2a7
Why issues is not available in https://github.com/ethereum/solc-bin ?
The text was updated successfully, but these errors were encountered: