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

hardhat-anvil allowUnlimitedContractSize doesn't work #109

Open
mshakeg opened this issue Sep 23, 2023 · 0 comments
Open

hardhat-anvil allowUnlimitedContractSize doesn't work #109

mshakeg opened this issue Sep 23, 2023 · 0 comments

Comments

@mshakeg
Copy link
Contributor

mshakeg commented Sep 23, 2023

Description

I've set allowUnlimitedContractSize to true in my anvil hardhat network config, however I still get the following error when trying to deploy contracts that exceed the default 24KB.

ProviderError: max initcode size exceeded

Looking through the code it doesn't seem like the allowUnlimitedContractSize is being considered for the --code-size-limit anvil flag

Suggestion

If allowUnlimitedContractSizeis true set --code-size-limit to usize::MAX i.e. 2**32

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