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

Cant deploy this contract on Test Network - out of gas #169

Open
creotiv opened this issue Oct 26, 2018 · 8 comments
Open

Cant deploy this contract on Test Network - out of gas #169

creotiv opened this issue Oct 26, 2018 · 8 comments

Comments

@creotiv
Copy link

creotiv commented Oct 26, 2018

Trying to deploy this contract to Genache test network, but getting out of gas every time. Even with higher limits it still not deploying. It seems like it have forever loop or something.

For deploy im using Truffle. Would be appreciate for help.

@gbalabasquer
Copy link
Collaborator

did you try to deploy to some of the testnets? like kovan? to discard there is a specific issue with ganache.

@creotiv
Copy link
Author

creotiv commented Nov 21, 2018 via email

@gbalabasquer
Copy link
Collaborator

did you compile the contract using --optimize?

@creotiv
Copy link
Author

creotiv commented Nov 22, 2018 via email

@creotiv
Copy link
Author

creotiv commented Nov 26, 2018 via email

@gbalabasquer
Copy link
Collaborator

Just made a test deploy to kovan. It succeed, 3.5 M gas used.
You are probably doing something wrong with optimize param. I'm using dapptools, but you could copy the code in Remix and try it there. Remember to paste all the dependencies.

@creotiv
Copy link
Author

creotiv commented Nov 26, 2018 via email

@gbalabasquer
Copy link
Collaborator

Yeah, that seems correct. Not sure why it is not working with Truffle, but if exceeds the block limit is because the optimisation of the tool is not being applied for some reason.

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

2 participants