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

Unreal big gas consumption for contract deploying #13846

Closed
AlexeyBarsuk opened this issue Mar 28, 2017 · 2 comments
Closed

Unreal big gas consumption for contract deploying #13846

AlexeyBarsuk opened this issue Mar 28, 2017 · 2 comments

Comments

@AlexeyBarsuk
Copy link

System information

Geth version: 1.5.9-stable-a07539fb
OS & Version: OSX El Capitan

Expected behaviour

Successful contract bytecode deploying

Actual behaviour

When the size of bytecode is ower 48Kb I get an error "The contract code couldn't be stored, please check your gas amount". When i estimate the gas consumption with Web3Helpers.web3.eth.estimateGas({data: code}) I get great numbers or "targetgaslimit" value if it is manually set;

Steps to reproduce the behaviour

Described here http://ethereum.stackexchange.com/questions/13469/unreal-big-gas-consumption-for-contract-deploying

@fjl
Copy link
Contributor

fjl commented Mar 29, 2017

Contract code cannot exceed 24576 bytes. See ethereum/EIPs#170 for details.

@fjl fjl closed this as completed Mar 29, 2017
@3esmit
Copy link

3esmit commented Jun 22, 2017

You might want to split your contracts into factories.

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

3 participants