Replies: 2 comments
-
I don't know this distinction between compatible and non-compatible upgrade. Upgrading CosmWasm contracts works like this: About boundary conditions: When the migrate entrypoint exists on the new contract and returns an error, it stops the migration. Also all normal limits for entrypoints apply here, like block gas limit, recursion limits, etc. One example is the burner contract. It just deletes all state entries and sends any funds to an address defined in the migrate message. |
Beta Was this translation helpful? Give feedback.
-
Sorry I'm late. I thought cosmwasm's contract upgrade would have taken the old code approach into account. (Some ecosystem(like aptos) contract upgrades require that contract upgrades do not remove pre-existing contract methods and method entry parameters.) ), but as far as the docs and your reply and my practice are concerned, cosmwasm's contract upgrade is very simple, and provides a lot of room for developers to develop, so I think as long as it doesn't involve complex data migration, I shouldn't encounter any obstacle problems in contract upgrade. @chipshort Thanks! |
Beta Was this translation helpful? Give feedback.
-
Migrate is sparsely described in the documentation, and I'd like to know more details because I want my contract to support this method.
links:
https://book.cosmwasm.com/actor-model/contract-as-actor.html?highlight=Migrate#migrations
https://docs.cosmwasm.com/core/entrypoints/migrate
Beta Was this translation helpful? Give feedback.
All reactions