-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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
Bug in ERC20 Token #2322
Comments
Is something preventing you from changing your compiler to
|
Hi @visheshdvn, Please use a solc version of 0.6.2 and above as Address.sol needs a minimum of 0.6.2. For instructions on setting the compiler version in Truffle, please see the Truffle documentation: |
Yes thanks @abcoathup . The solution given by @julianmrodri worked for me. I'm such a newbie in blockchain tech 😕 .. sry for wasting 2 minutes of your life if someone is reading this thread.. 😆 |
Hi @visheshdvn, Everyone was new once. Ethereum has only been live for five years. Feel free to ask the community all the questions that you need in the community forum: https://forum.openzeppelin.com/ When I see a question like yours, I think of how we can improve our documentation so that no one else has to have the same problem. |
Recently I am having a lot of trouble in using ERC20 token version 3.1.0 because of a minor bug.
The ERC20 token is written in solidity 0.6.0 and it inherits the
import "../../utils/Address.sol";
contract.The code of Address.sol:
The Address.sol is written in solidity 0.6.2.
Because if this running
migrate
command in truffle developer console throwsParseError: source file require a different compiler vesion (current compiler is 0.6.0)
and
Error: truffle is currrently using solc 0.6.0 but one of your contracts specify "pragma solidity ^0.6.2"."
errors everytime.
Hope you'll look into it soon. :)
The text was updated successfully, but these errors were encountered: