How to update a contract with a new field?

I’m trying to add a new field to my contract data struct, but i got a “error: found new field” message.
Is is possibile?

Thank you!

I found “flow accounts remove” can remove any contract in an account.

Unfortunately, when upgrading contracts, it is not possible to add new fields to the contract or any of its defined composite types. Upgrades do not initialize fields, so it would put the storage for those new fields in an insecure state.

3 Likes