osmosis-labs / beaker

Beaker helps streamlining CosmWasm development workflow.
Apache License 2.0
106 stars 30 forks source link

Trace store-code-proposal execution and update code_id #67

Closed iboss-ptk closed 2 years ago

iboss-ptk commented 2 years ago

After store code proposal success, the state does not get updated with it

Without this, contract instantiate/migrate will never use code stored via proposal unless manually update the state file

Investigation

According to this line of code, at EndBlocker if proposal is passed and get executed, it should re-emit events (and hopefully contextualized with the proposal).

So potential execution plan to get code_id from proposal_id is:

Todo