Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

Error compiling libraries #29

Open
nicholaspai opened this issue Jun 30, 2021 · 1 comment
Open

Error compiling libraries #29

nicholaspai opened this issue Jun 30, 2021 · 1 comment

Comments

@nicholaspai
Copy link

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:

  1. Library contract to compile:
library TestLibrary {
    function returnBool() internal pure returns (bool) {
        return true;
    }
}
  1. hardhat compile --network optimism --show-stack-traces
  2. If you change the library keyword to contract, 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
@nicholaspai
Copy link
Author

Related to #23

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

No branches or pull requests

1 participant