You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a CW contract is instantiated from command-line, the migratable flag can be set to true. However, when the contract is instantiated programmatically using WasmMsg::Instantiate, there isn't a way to set migratable flag, so migration of such contracts fail.
The text was updated successfully, but these errors were encountered:
This is a good point and oversight when I added WasmMsg::Migrate.
I would propose adding admin: Option<String> to WasmMsg::Instantiate. The contract could set admin: Some(env.contract.address) and then be able to migrate the sub-contract
When a CW contract is instantiated from command-line, the
migratable
flag can be set totrue
. However, when the contract is instantiated programmatically usingWasmMsg::Instantiate
, there isn't a way to setmigratable
flag, so migration of such contracts fail.The text was updated successfully, but these errors were encountered: