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

remove and re-deploy may implement the ability like "update" but without some restrictions. #1569

Closed
xiyu1984 opened this issue Apr 12, 2022 · 1 comment
Labels
Bug Something isn't working Feedback

Comments

@xiyu1984
Copy link

xiyu1984 commented Apr 12, 2022

Instructions

I found that remove and re-deploy a contract may implement the ability like contract "update" but without some restrictions.

Problem

I made a test for the lifespan of a resource on Flow. When I was testing it, I found some interesting things.

As we know from the doc, contracts update has many restrictions.

We found a more flexible way to do the "update", that is, by remove the contract and re-deploy it.

The resource created by the older contract is just the same(with the same uuid and can be visited as before) after the contract has been removed, re-written with some features breaking the restrictions of update, and re-deployed.

Steps to Reproduce

The details of this issue can be seen here

@turbolent turbolent added the Bug Something isn't working label Sep 23, 2022
@j1010001
Copy link
Member

duplicate of onflow/cadence-lang.org#163, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Feedback
Projects
None yet
Development

No branches or pull requests

4 participants