Skip to content

Too large contract error #1420

Discussion options

You must be logged in to vote

Hii @Aamirusmani1552, even I faced the same in your hardhat.config.js in config variable inside networks add this
hardhat.config.js

const config = {
    networks : {
+   hardhat: {
+			chainId: 31337,
+			allowUnlimitedContractSize: true,
+		},
+  localhost: {
+			chainId: 31337,
+			allowUnlimitedContractSize: true,
+		},
      }
}

You can also refer it here for configuration : https://github.com/technophile-04/onchain-DAO/blob/db3d6e664883aa58e7dde0189ac909a40b76f883/hardhat.config.ts#L27

Alternate (Patricks Code ) :
https://github.com/PatrickAlphaC/dao-template/blob/ba40040287fb17c75c9f58148f37fb80460c6af5/hardhat.config.ts#L20

We just need to tell it to allow unlimitedContractSize on …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Aamirusmani1552
Comment options

@shoaibshebi
Comment options

@ManuWeb3
Comment options

Answer selected by Aamirusmani1552
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants