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

Allow redeployment of unchanged contract #400

Open
monkybrain opened this issue Mar 24, 2019 · 3 comments
Open

Allow redeployment of unchanged contract #400

monkybrain opened this issue Mar 24, 2019 · 3 comments
Labels
discussion Discussion about an issue or topic

Comments

@monkybrain
Copy link

Hey! It would be great if you could redeploy contracts that haven't been changed. Quite frequently during the development process I just want to reset the state of the contract, i.e. deploy the same contract to a different address. Currently it seems like you have to edit the contract to force the IDE to recompile and deploy a new contract. Or perhaps I've missed something?

@javier-tarazaga javier-tarazaga added the discussion Discussion about an issue or topic label Mar 25, 2019
@javier-tarazaga
Copy link
Contributor

Hi @monkybrain!

@filippsen might give you a more detail explanation of this, but the initial idea was to avoid actually re-deployments of the same contract when actually nothing has actually changed. But I can see the point of wanting to deploy the same contract to a different address.

@filippsen
Copy link
Contributor

@javier-tarazaga Correct. The main reason for that behavior was to not repeat the exact same work, as mentioned. Since deployment data is saved as part of the project, the system detects the files already exist and haven't changed since last time. Also, when you Deploy to an external network you are able to Interact and Preview on later sessions because of the saved state (continue later without having to redeploy).

An idea to consider could be to add the option to always force redeployment when triggering any Deploy action. Extra notes: a) consider defaults to no, false or off; b) might be healthy to not allow this new setting when targeting non-test networks (as of now, Mainnet) or show an extra warning message before doing so.

@monkybrain
Copy link
Author

@filippsen I see your point and makes sense to me too. Perhaps a "No changes detected. Want to redeploy anyway?" dialog would do the trick? (perhaps even with a "don't ask me again" option, at least for test environments, on a per project basis)

@filippsen filippsen removed their assignment Sep 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Discussion about an issue or topic
Projects
None yet
Development

No branches or pull requests

3 participants