NomicFoundation / hardhat-ignition

Hardhat Ignition is a declarative deployment system that enables you to deploy your smart contracts without navigating the mechanics of the deployment process.
https://hardhat.org/ignition
MIT License
107 stars 24 forks source link

Detect and report contract size limit errors #824

Open alcuadrado opened 1 week ago

alcuadrado commented 1 week ago

Describe the feature

Ignition module executions can fail with "Reverted without error reason" when there's a contract size limit error. While this is technically the correct error that the EVM returns in these cases, we can detect and report/prevent this issue.

Related EIPs:

Search terms

error-handling, execution

alcuadrado commented 1 week ago

Note that when connected to Hardhat Network we would be under a special case, as it already reports EIP-170 violations, just like it reports custom errors.