eth-smart-contracts | Repository for all smart contracts used on EP | Cryptocurrency library
kandi X-RAY | eth-smart-contracts Summary
kandi X-RAY | eth-smart-contracts Summary
Repository for all smart contracts used on EP
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of eth-smart-contracts
eth-smart-contracts Key Features
eth-smart-contracts Examples and Code Snippets
Community Discussions
Trending Discussions on eth-smart-contracts
QUESTION
whenever I try to compile any solidity project using solidity, specifically command like truffle compile it gives me an error P.S. I tried other solutions like renaming truffle.cmd or calling truffle.cmd instead of truffle and nothing works, I used windows cmd or Git Bash same error.
...ANSWER
Answered 2019-Mar-15 at 17:27I had the same error with my contract. Check your solc compiler version with
truffle version
and check solidity version of your contract.
In my case, compiler was Solidity v0.5.0 (solc-js), but the contract had pragma solidity ^0.4.11;
I simply changed it to pragma solidity ^0.5.0
and reformatted code to its version requirements, contract compiled fine after. Another way to solve the problem is to edit truffle config by adding:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install eth-smart-contracts
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page