Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

Compilation of inheritance chain

I came to know that given contracts fileA.sol pragma solidity >= 0.7.0; contract A {} is imported by fileB.sol import './fileA.sol'; pragma solidity 0.8.0; contract B {} where B is the top-level ...
Xirexor's user avatar
  • 176
0 votes
2 answers
45 views

Error import : "File import callback not supported" (using remappings) [Pyth Network]

Im following the "create a contract" part in the tutorial of Pyth Network (https://docs.pyth.network/price-feeds/create-your-first-pyth-app/evm/part-1) and i have this error in the import. ...
Ibizaz's user avatar
  • 1
1 vote
1 answer
183 views

Solc: Source file requires different compiler version

in my brownie project i have imported LinkTokenReceiver.sol contract which its pragma solidity is pragma solidity ^0.7.0;, which means that it requires compiler version equal or greater than 0.7.0, ...
noro meb's user avatar
  • 368
1 vote
1 answer
1k views

I can not import openzeppelin, but get error 'File import callback not supported'

I get 'File import callback not supported' when I try to compile my simple solidity contract, that imports ERC721. Can anybody help? Here is what I have already done: I have installed openzeppelin in ...
utroelski's user avatar
0 votes
3 answers
775 views

Can't compile Truffle project that imports a .sol with different pragma version

I have a contract pragma solidity 0.6.12 version that imports several 0.6.12 version contracts and one pragma solidity 0.8.0. My truffle-config: compilers: { solc: { version: "^0.6.12 &...
user78827's user avatar
2 votes
1 answer
225 views

searching for an elegant solc compiler solution

I firstly had a problem with import statement inside my contracts, I figured out that the solc compiler didn't handle import statement, and that we needed to make out own. With the help of some nice ...
Cizia's user avatar
  • 263
1 vote
1 answer
109 views

1INCH Version error

I got error importing and using 1INCH. The problem is in the versions. In IOneSplit.sol version is 0.5.0 (pragma solidity ^0.5.0). And IOneSplit imports IERC20 which is in 0.8.0 (pragma solidity ^0.8....
RafayelKh's user avatar
0 votes
2 answers
5k views

How to import and compile contracts of different versions solidity

How to import and compile contracts of different versions using solidity in remix? When I import a contract I get this error: ParserError: Source file requires different compiler version (current ...
YulePale's user avatar
  • 1,853
0 votes
1 answer
1k views

Contract import from GitHub gives an error "Unable to import "undefined": TypeError: Failed to fetch"

This would be an old issue, but the solutions I have seen on this site aren't working. I'm trying to import a contract of OpenZeppelin to my Remix IDE. import "https://github.com/OpenZeppelin/...
Div's user avatar
  • 371
1 vote
0 answers
501 views

Contract can't import remote repository locally

I made a compiler script that takes all contracts in folder ./contracts/ and produces a .json for each contract, containing an ABI and Bytecode. This worked fine for a while. However, I added some ...
João Quintanilha's user avatar