question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update `solc` version

See original GitHub issue

Could we update the solc version?

Embark is running on v0.4.8 right now, but the newest version is v0.4.11. There are some great new features I’d like to leverage which you can see in the changelog.

Why is the compiler shrink-wrapped the way it is? Is Embark tightly coupled to the compiler version? I’m going to assume so. It would be nice if we could make solc a peer dependency, but I don’t know if that’s feasible.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
nathanphcommented, Jun 3, 2017

Alright, so sometime between solc v0.4.8 and solc v 0.4.11 the output of the json changed from:

{ contracts:                                                                                                                                                                                                                                                              
   { 'contractName0': ... },
   { 'contractName1': ... }
}

to:

{ contracts:                                                                                                                                                                                                                                                              
   { 'contractFile0:contractName0': ... },
   { 'contractFile1:contractName1': ... }
}

I’m not sure if that’s all that changed, but it seems to be working now with the changes I’m about to make a pull request with.

1reaction
juharriscommented, Jun 2, 2017

I did notice that the contract name was like simple_storage.sol:SimpleStorage in chains.json. So figuring out why that happened should help.

EDIT: It should just be SimpleStorage.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to upgrade solidity compiler in truffle
You can force truffle to use a specific solc version by installing that version directly in the truffle directory.
Read more >
Installing the Solidity Compiler — Solidity 0.8.17 documentation
Docker images of Solidity builds are available using the solc image from the ethereum organisation. Use the stable tag for the latest released...
Read more >
solc - npm
Solidity compiler. Latest version: 0.8.17, last published: 4 months ago. Start using solc in your project by running `npm i solc`.
Read more >
How to change Truffle default solc version 0.5.8 - Support
How to change Truffle default solc version 0.5.8 ... But I can deploy only pragma solidity ^0.5.8; Others version is not compile successfully....
Read more >
How to switch between Solidity version to Latest ... - Morioh
solc -select is a tool to switch between Solidity compiler versions. It is easy to install, learn and use. I recommend you put...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found