terra/token_bridge: set code_id to deployed cw20_wrapped
Change-Id: I275cb38a049290e8399f3fdc5f304c3fc12551f6
This commit is contained in:
parent
2a63d08b88
commit
fc1c91a4b4
|
@ -113,7 +113,7 @@ const WRAPPED_ASSET_UPDATING: &str = "updating";
|
||||||
pub fn migrate(deps: DepsMut, _env: Env, _msg: MigrateMsg) -> StdResult<Response> {
|
pub fn migrate(deps: DepsMut, _env: Env, _msg: MigrateMsg) -> StdResult<Response> {
|
||||||
// Switch CW20 Code ID to include assets with updatable metadata.
|
// Switch CW20 Code ID to include assets with updatable metadata.
|
||||||
let mut state = config(deps.storage).load()?;
|
let mut state = config(deps.storage).load()?;
|
||||||
state.wrapped_asset_code_id = 0;
|
state.wrapped_asset_code_id = 556;
|
||||||
config(deps.storage).save(&state)?;
|
config(deps.storage).save(&state)?;
|
||||||
|
|
||||||
// Remove registered asset with old code ID.
|
// Remove registered asset with old code ID.
|
||||||
|
|
Loading…
Reference in New Issue