Skip to content
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

Warning while compiling contracts. #21

Open
oneworldcoder opened this issue Jan 15, 2021 · 2 comments
Open

Warning while compiling contracts. #21

oneworldcoder opened this issue Jan 15, 2021 · 2 comments

Comments

@oneworldcoder
Copy link

Hello,

When I go to compile contracts/sample/flashloan.sol I get the following warning. How do I solve this error? (I tried using pragma solidity >=0.5.0 <0.6.0;, However it does not work)

https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v2.5.0/contracts/utils/Address.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.5.0+commit.1d4f565a.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version pragma solidity ^0.5.5; ^---------------------^

@Robsonsjre
Copy link
Owner

What is the current version of your open Zeppelin contract inside package.json..I suspect the issue is thet you are using a newer version of the open Zeppelin contracts

@Robsonsjre
Copy link
Owner

You can also try to change the current compiler version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants