You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Description
I've set
allowUnlimitedContractSize
totrue
in myanvil
hardhat network config, however I still get the following error when trying to deploy contracts that exceed the default 24KB.Looking through the code it doesn't seem like the
allowUnlimitedContractSize
is being considered for the --code-size-limit anvil flagSuggestion
If
allowUnlimitedContractSize
is true set--code-size-limit
to usize::MAX i.e. 2**32The text was updated successfully, but these errors were encountered: