FlashloanUsecases icon indicating copy to clipboard operation
FlashloanUsecases copied to clipboard

Warning while compiling contracts.

Open oneworldcoder opened this issue 4 years ago • 2 comments

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; ^---------------------^

oneworldcoder avatar Jan 15 '21 09:01 oneworldcoder

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 avatar Jun 06 '21 23:06 Robsonsjre

You can also try to change the current compiler version

Robsonsjre avatar Jun 24 '21 09:06 Robsonsjre