solidity
solidity copied to clipboard
Error compiling libraries
Describe the bug The following error is thrown when compiling libraries:
OVM Compiler Error (insert "// @unsupported: ovm" if you don't want this file to be compiled for the OVM):
InternalCompilerError: Assembly exception for bytecode
Error HH600: Compilation failed
To Reproduce Steps to reproduce the behavior:
- Library contract to compile:
library TestLibrary {
function returnBool() internal pure returns (bool) {
return true;
}
}
-
hardhat compile --network optimism --show-stack-traces
- If you change the
library
keyword tocontract
, it should compile correctly.
Expected behavior Libraries should compile to OVM AFAIK
System Specs:
- OS:
macOS 11.4
- Package Version (or commit hash):
@eth-optimism/hardhat-ovm@^0.2.2
Related to #23