Skip to content
This repository has been archived by the owner on Aug 5, 2021. It is now read-only.

Deploying large contracts fails #324

Open
elenadimitrova opened this issue Apr 28, 2020 · 0 comments
Open

Deploying large contracts fails #324

elenadimitrova opened this issue Apr 28, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@elenadimitrova
Copy link

elenadimitrova commented Apr 28, 2020

When testing with ganache we use allowUnlimitedContractSize switch to allow contracts bigger than 234576 bytes to be deployed. However an out of gas error is thrown even though the contract was created by ganache, e.g:

Transaction: 0x702c95bfc4324122876c795d6175a62e1a8a75c04d37f3dc30c5a479dda54544
  Contract created: 0xe83ef66e898b65e1e202f3f554897943a0383f29
  Gas usage: 110000000
  Block Number: 430
  Block Time: Tue Apr 28 2020 16:44:45 GMT+0300 (Eastern European Summer Time)
  Runtime Error: out of gas

Additionally, for test coverage it is worth to always run the underlying ganache instance with the allowUnlimitedContractSize switch to cater for the bigger instrumented contracts deployment.

edit: this could be a ganache-related bug so also logged it there trufflesuite/ganache#734.

@ochikov ochikov self-assigned this Jul 15, 2020
@ochikov ochikov added the enhancement New feature or request label Jul 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants