question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Transaction reverted: trying to deploy a contract whose code is too large

See original GitHub issue

I came across a scenario where I cant deploy the contract whose code is more than 3000 lines, while writing the tests

Error: Transaction reverted: trying to deploy a contract whose code is too large

Any thoughts on how to fix this

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
quezakcommented, Apr 29, 2021

This is not a TypeChain issue – we only generate typings for existing tools 😃 I see you’ve already created an issue in hardhat so I’ll close this one.

0reactions
solchefcommented, Sep 26, 2022

settings: { optimizer: { enabled: true, runs: 200, details: { yul: false }, }, }

Read more comments on GitHub >

github_iconTop Results From Across the Web

Transaction reverted: trying to deploy a contract whose code is ...
Error : Transaction reverted: trying to deploy a contract whose code is too large #1430. Closed. sriharikapu opened this issue on Apr 28,...
Read more >
Deploying large contracts : r/ethdev - Reddit
... fork on test net to play around with it, but I get "Error: Transaction reverted: trying to deploy a contract whose code...
Read more >
I can't deploy large contracts with Optimizer enabled
I'm getting the error from the deployment that the size of the contracts is too large, so how can they have deployed the...
Read more >
Downsizing contracts to fight the contract size limit
What can you do to prevent your contracts from getting too large? ... point you will reach the limit and when deploying ill...
Read more >
Smart Contract Won't deploy, RPC ERROR execution being ...
I'm attempting to build a smart contract where you can send me a wave on the ... inpage.js:1 MetaMask - RPC Error: execution...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found