-
Notifications
You must be signed in to change notification settings - Fork 48
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
Add config option to allow upgrading legacy contracts #553
Conversation
I am at a loss for how to do a good end to end test for this; I don't have a good way to generate old state to use as input for the test. |
5115cdb
to
f1971b5
Compare
Please also add this flag to the readme |
@@ -73,6 +73,8 @@ and if you plan to run the emulator with Docker you must use the environment var | |||
| `--start-block-height` | `FLOW_STARTBLOCKHEIGHT` | `0` | Start block height to use when starting the network using 'testnet' or 'mainnet' as the chain-id | | |||
| `--evm-enabled` | `FLOW_EVMENABLED` | `false` | Enable evm support | | |||
|
|||
| `--legacy-upgrade` | `FLOW_LEGACYUPGRADE` | `false` | Enable upgrading of legacy contracts | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do I need to do anything to get the docker flag here to work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, not quite sure what you mean here, how is this related to Docker?
…nto sainati/legacy-deploy
…nto sainati/legacy-deploy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Part of onflow/cadence#2947
This adds a server config option to the emulator that allows it to parse old Cadence contracts when set, for the purposes of allowing users to test contract updates to Cadence 1.0
For contributor use:
master
branchFiles changed
in the GitHub PR explorer