Skip to content
This repository has been archived by the owner. It is now read-only.

Solidity compiler version missing #534

Closed
karalabe opened this issue May 2, 2016 · 4 comments
Closed

Solidity compiler version missing #534

karalabe opened this issue May 2, 2016 · 4 comments

Comments

@karalabe
Copy link
Member

@karalabe karalabe commented May 2, 2016

One of the most important features is the ability to verify deployed contracts. However mist does not display the Solidity compiler version it uses to deploy a contract, so afterwards it's extremely hard to guess which version it was and have the contract verified by block explorers. I think we should definitely have the version number displayed when working with solidity code directly.

@luclu luclu added this to the 0.8.2 milestone Jul 12, 2016
@luclu luclu added this to the 0.8.3 milestone Jul 21, 2016
@luclu luclu removed this from the 0.8.2 milestone Jul 21, 2016
@luclu luclu added ready and removed planned labels Jul 25, 2016
@evertonfraga
Copy link
Member

@evertonfraga evertonfraga commented Aug 29, 2016

Hi @karalabe, how exactly would be the best way to display Solidity version?

Only a small text around the editor would suffice? Or embed this information alongside with the contract, in some way?

Loading

@luclu
Copy link
Contributor

@luclu luclu commented Sep 3, 2016

@evertonfraga I guess while the former is be the way to go, embedding it in some standardized way would be required. Is there some EIP on this? Is there a meta-data section within contracts?

To accomplish the former we might want to use the compiler version key-value pair from the resulting web3.eth.compile.solidity() object (compileContract.js#L162) to be node agnostic:

var testSource='contract Test {  function double(int a) constant returns(int) { return 2*a; } }'
var testCompiled = web3.eth.compile.solidity(testSource);
console.log(testCompiled)
{ Test: 
   { code: '0x6060604052602a8060106000396000f3606060405260e060020a60003504636ffa1caa8114601a575b005b6002600435026060908152602090f3',
     info: 
      { source: 'contract Test {  function double(int a) constant returns(int) { return 2*a; } }',
        language: 'Solidity',
        languageVersion: '0.3.6',
        compilerVersion: '0.3.6',
        compilerOptions: '--bin --abi --userdoc --devdoc --add-std --optimize -o /var/folders/1r/vtmg53tn17g9m35zd64lyczh0000gn/T/solc777625456',
        abiDefinition: [Object],
        userDoc: [Object],
        developerDoc: [Object] } } }

Loading

@evertonfraga evertonfraga removed this from the 0.8.3 milestone Sep 22, 2016
@evertonfraga evertonfraga added this to the 0.8.4 milestone Sep 22, 2016
@evertonfraga evertonfraga added this to the 0.8.4 milestone Sep 22, 2016
@evertonfraga evertonfraga removed this from the 0.8.3 milestone Sep 22, 2016
@evertonfraga evertonfraga removed this from the 0.8.4 milestone Sep 27, 2016
@evertonfraga evertonfraga added this to the 0.8.5 milestone Sep 27, 2016
@evertonfraga evertonfraga added this to the 0.8.5 milestone Sep 27, 2016
@evertonfraga evertonfraga removed this from the 0.8.4 milestone Sep 27, 2016
@evertonfraga evertonfraga removed this from the 0.8.5 milestone Oct 7, 2016
@evertonfraga evertonfraga added this to the 0.9 milestone Oct 7, 2016
@evertonfraga evertonfraga added this to the 0.9 milestone Oct 7, 2016
@evertonfraga evertonfraga removed this from the 0.8.5 milestone Oct 7, 2016
@luclu
Copy link
Contributor

@luclu luclu commented Dec 19, 2016

This might be obsolete due to solidity's version-pragma requirement.

Loading

@evertonfraga evertonfraga removed this from the 0.9 milestone Mar 22, 2017
@evertonfraga evertonfraga added this to the 0.9.0 milestone Mar 22, 2017
@evertonfraga evertonfraga added this to the 0.9.0 milestone Mar 22, 2017
@evertonfraga evertonfraga removed this from the 0.9 milestone Mar 22, 2017
@lock
Copy link

@lock lock bot commented Mar 31, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

Loading

@lock lock bot locked and limited conversation to collaborators Mar 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants