Skip to content

Commit f049fb1

Browse files
Review fixes
1 parent 05958a4 commit f049fb1

File tree

6 files changed

+6
-25
lines changed

6 files changed

+6
-25
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ cosmwasm-schema = { version = "2.1.0", default-features = false }
5050
cw-storage-plus = { version = "2.0.0", default-features = false }
5151
cw2 = { version = "2.0.0", default-features = false }
5252
cw721 = { package = "cw721", git = "https://github.com/public-awesome/cw-nfts", branch = "main", default-features = false }
53-
cw721-base = { package = "cw721-base", git = "https://github.com/public-awesome/cw-nfts", branch = "main", default-features = false }
5453
cw-multi-test = { version = "2.1.0", default-features = false }
5554
cw-utils = { version = "2.0.0", default-features = false }
5655
time = "0.3.37"

contracts/puppeteer/src/contract.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -576,9 +576,6 @@ fn execute_setup_protocol(
576576
"/cosmos.distribution.v1beta1.MsgSetWithdrawAddress",
577577
)?);
578578

579-
deps.api
580-
.debug(&format!("WASMDEBUG: {rewards_withdraw_address:?}",));
581-
582579
let submsg = compose_submsg(
583580
deps.branch(),
584581
config.clone(),
@@ -591,8 +588,6 @@ fn execute_setup_protocol(
591588
ReplyMsg::SudoPayload.to_reply_id(),
592589
)?;
593590

594-
deps.api.debug(&format!("WASMDEBUG: SUBMSG {submsg:?}",));
595-
596591
Ok(Response::default().add_submessages(vec![submsg]))
597592
}
598593

@@ -1075,9 +1070,6 @@ fn sudo_response(
10751070
.ok_or_else(|| StdError::generic_err("IBC client state latest_height not found"))?
10761071
.revision_height;
10771072

1078-
deps.api
1079-
.debug(&format!("WASMDEBUG: remote height: {:?}", remote_height));
1080-
10811073
deps.api.debug(&format!(
10821074
"WASMDEBUG: json: {request:?}",
10831075
request = to_json_binary(&ReceiverExecuteMsg::PeripheralHook(

contracts/withdrawal-voucher/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,5 @@ cosmwasm-schema = { workspace = true }
2525
cosmwasm-std = { workspace = true }
2626
cw2 = { workspace = true }
2727
cw721 = { workspace = true }
28-
cw721-base = { workspace = true }
2928
drop-staking-base = { workspace = true }
3029
semver = { workspace = true }

contracts/withdrawal-voucher/src/contract.rs

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use cosmwasm_std::Empty;
22
pub use cw721::msg::MinterResponse;
33
pub use cw721::traits::{Cw721Execute, Cw721Query};
4-
pub use cw721_base::error::ContractError;
4+
pub use cw721::error::Cw721ContractError;
55
pub use drop_staking_base::msg::withdrawal_voucher::{
66
ExecuteMsg, Extension, ExtensionMsg, InstantiateMsg, MigrateMsg, QueryMsg,
77
};
@@ -34,7 +34,7 @@ pub mod entry {
3434
env: Env,
3535
info: MessageInfo,
3636
msg: InstantiateMsg,
37-
) -> Result<Response, ContractError> {
37+
) -> Result<Response, Cw721ContractError> {
3838
cw2::set_contract_version(deps.storage, CONTRACT_NAME, CONTRACT_VERSION)?;
3939
Cw721VoucherContract::default().instantiate(deps.branch(), &env, &info, msg)
4040
}
@@ -45,24 +45,17 @@ pub mod entry {
4545
env: Env,
4646
info: MessageInfo,
4747
msg: ExecuteMsg,
48-
) -> Result<Response, ContractError> {
48+
) -> Result<Response, Cw721ContractError> {
4949
Cw721VoucherContract::default().execute(deps, &env, &info, msg)
5050
}
5151

5252
#[cosmwasm_std::entry_point]
53-
pub fn query(deps: Deps, env: Env, msg: QueryMsg) -> Result<Binary, ContractError> {
54-
deps.api
55-
.debug(format!("WASMDEBUG: Received QueryMsg: {:?}", msg).as_str());
56-
57-
let result = Cw721VoucherContract::default().query(deps, &env, msg);
58-
59-
deps.api
60-
.debug(format!("WASMDEBUG: Exiting query with result: {:?}", result).as_str());
61-
result
53+
pub fn query(deps: Deps, env: Env, msg: QueryMsg) -> Result<Binary, Cw721ContractError> {
54+
Cw721VoucherContract::default().query(deps, &env, msg);
6255
}
6356

6457
#[cosmwasm_std::entry_point]
65-
pub fn migrate(deps: DepsMut, _env: Env, _msg: MigrateMsg) -> Result<Response, ContractError> {
58+
pub fn migrate(deps: DepsMut, _env: Env, _msg: MigrateMsg) -> Result<Response, Cw721ContractError> {
6659
let contract_version_metadata = cw2::get_contract_version(deps.storage)?;
6760
let storage_contract_name = contract_version_metadata.contract.as_str();
6861
if storage_contract_name != CONTRACT_NAME {

packages/base/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ drop-puppeteer-base = { workspace = true }
3030
drop-helpers = { workspace = true }
3131
drop-macros = { workspace = true }
3232
drop-proto = { workspace = true }
33-
cw721-base = { workspace = true }
3433
cw721 = { workspace = true }
3534
thiserror = { workspace = true }
3635
cw-ownable = { workspace = true }

packages/base/src/msg/withdrawal_voucher.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ use cosmwasm_schema::cw_serde;
22
use cosmwasm_std::Empty;
33
pub use cw721::msg::Cw721InstantiateMsg as CW721InstantiateMsg;
44
pub use cw721::msg::MinterResponse;
5-
pub use cw721_base::error::ContractError;
65

76
use crate::state::withdrawal_voucher::{NftExtension, NftExtensionMsg};
87

0 commit comments

Comments
 (0)