-
Notifications
You must be signed in to change notification settings - Fork 298
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
Clarification on reusing deployments #539
Comments
tx data is what is looked at, so if bytecode changes (including ipfs hash appended at the end, and libraries) OR constructor arguments changes, then contract will be deployed You can also specify |
skipIfAlreadyDeployed is the flag for all contracts, probably I would need it per contract, |
But best way would be to know what changed and keep it the same, thnx for info. |
I have a strange situation where the bytecode is different between two compiled contracts
Yet when I go and deploy contracts, it's not reused as hh is deploying different bytecode now, then it was some 5 months ago. I could guess if it is possible that somehow solidity compiler is compiling contracts differently now then then, even on the same version. If not that don't really know what else... |
I would like to know more about reusing deployments. Precisely I wonder when deployments are reused and when is the situation that hh deploy reuses them. Is the only parameter solidity code change and while the code is exactly the same they will be always reused if file save is there or is there some other parameter that could also make hh deploy make new contract?
The text was updated successfully, but these errors were encountered: