Questions tagged [compilation]
For questions regarding contracts compilation.
192 questions
2 votes
1 answer
60 views
Please help me how to calculate the correct function name in bytes 4
Good day, dear forum members. I apologize for my possibly stupid question. I can't figure out the problem. There is a function in my smart contract ///---------------- struct parmsData{ address ...
0 votes
2 answers
69 views
Contract verify [duplicate]
I get such error of compilation in Optimism Sepolia testnet network.The contract succesfully compiles using hardhat with needed configuration.What should I do to get verified the contract ?
0 votes
2 answers
122 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. ...
0 votes
1 answer
45 views
The Solidity version pragma statement in these files doesn't match any of the configured compilers in your config. hardhat-deployment
in trying to compile a contract i keep getting this error: The Solidity version pragma statement in these files doesn't match any of the configured compilers in your config. Change the pragma or ...
0 votes
1 answer
107 views
Call or assignment expected. Getting this error while upgrading solidity version
I am not aware of the Assembly code. I copied the ERC1820 registry contract from here. This is written in 0.5.3. When I tried to compile it with 0.8.0 it gave me this error : I know it's because of ...
2 votes
2 answers
1k views
How to compile contracts independently with Hardhat?
I'm facing the following error, when compiling my contracts in Hardhat: Warning: Contract code size exceeds 24576 bytes (a limit introduced in Spurious Dragon). This contract may not be deployable on ...
1 vote
1 answer
47 views
Hardhat compile code on file change (like remix)
Is there any way (preferably an official Hardhat plugin) to automatically compile the Smart Contracts' code on file change? I'd want to have the same developer experience as when using Remix, or ...
0 votes
1 answer
163 views
"Warning: Unreachable code" in solidity when overriding a function to make it fail and that is used elsewhere
I have the following code sample pragma solidity ^0.8.13; error MyError(); abstract contract A { function f1() public pure virtual returns(bool); function f2() public pure virtual returns(...