onflow / cadence

Cadence, the resource-oriented smart contract programming language 🏃‍♂️
https://developers.flow.com/cadence
Apache License 2.0
531 stars 139 forks source link

Stop migration if --chain parameter does not match state #3335

Closed j1010001 closed 2 days ago

j1010001 commented 4 months ago

Split off of https://github.com/onflow/cadence/issues/3287#issuecomment-2085277852

janezpodhostnik commented 1 month ago

One way to do this is to check that the status register for the service account (for the given chain id) exists. That would be easiest to do with another "migration" step that would not migrate anything.