diff --git a/Cargo.lock b/Cargo.lock index 15358d7..b34ff43 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -15,7 +15,7 @@ dependencies = [ [[package]] name = "alliance-nft-collection" -version = "1.1.0" +version = "1.2.0" dependencies = [ "alliance-nft-packages", "cosmwasm-schema", @@ -35,7 +35,7 @@ dependencies = [ [[package]] name = "alliance-nft-minter" -version = "1.1.0" +version = "1.2.0" dependencies = [ "alliance-nft-packages", "cosmwasm-schema", @@ -54,7 +54,7 @@ dependencies = [ [[package]] name = "alliance-nft-packages" -version = "1.1.0" +version = "1.2.0" dependencies = [ "cosmwasm-schema", "cosmwasm-std", diff --git a/Cargo.toml b/Cargo.toml index f31f97c..8be2fa8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ members = [ [workspace.package] description = "Alliance NFT Collection dropped to the Game of Alliance players" authors = ["Terra Money "] -version = "1.1.0" +version = "1.2.0" edition = "2021" license = "Apache-2.0" repository = "https://github.com/terra-money/alliance-nft-collection" diff --git a/contracts/alliance-nft-minter/src/contract/execute.rs b/contracts/alliance-nft-minter/src/contract/execute.rs index 686b45c..859c210 100644 --- a/contracts/alliance-nft-minter/src/contract/execute.rs +++ b/contracts/alliance-nft-minter/src/contract/execute.rs @@ -240,21 +240,9 @@ fn try_change_owner( config.owner = new_owner.clone(); Ok(config) })?; - let collection_addr = match cfg.nft_collection_address { - Some(addr) => addr, - None => return Err(ContractError::NftCollectionAddressNotSet {}), - }; - let msg = WasmMsg::Execute { - contract_addr: collection_addr.to_string(), - msg: to_json_binary(&ExecuteCollectionMsg::ChangeOwner(new_owner.to_string())).unwrap(), - funds: vec![], - }; - - Ok(Response::default() - .add_attributes(vec![ - ("action", "change_owner"), - ("new_owner", new_owner.to_string().as_str()), - ]) - .add_message(msg)) + Ok(Response::default().add_attributes(vec![ + ("action", "change_owner"), + ("new_owner", new_owner.to_string().as_str()), + ])) }