Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] offline compilation #1578

Open
cytadela8 opened this issue Dec 11, 2024 · 0 comments
Open

[Feature request] offline compilation #1578

cytadela8 opened this issue Dec 11, 2024 · 0 comments

Comments

@cytadela8
Copy link
Member

🌟 Feature Request for hardaht-zksync plugins

💥 Plugin name

hardhat-zksync-solc

📝 Description

It would be useful if solidity compilation would work using the cached compiler offline.

🤔 Rationale

A colleague from Avara asked about offline compilation of Solidity code using hardhat. This is useful when working with (temporarly) no internet access, for example during flights.

📋 Additional Context

Currently, you get this error

Error: getaddrinfo ENOTFOUND github.com
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) {
  errno: -3008,
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'github.com'
}

There is a workaround available: use the compilerPath option inside zksolc:{settings:{}} and point it to a local binary

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

No branches or pull requests

1 participant