1
1
use cosmwasm_std:: Empty ;
2
2
pub use cw721:: msg:: MinterResponse ;
3
3
pub use cw721:: traits:: { Cw721Execute , Cw721Query } ;
4
- pub use cw721_base :: error:: ContractError ;
4
+ pub use cw721 :: error:: Cw721ContractError ;
5
5
pub use drop_staking_base:: msg:: withdrawal_voucher:: {
6
6
ExecuteMsg , Extension , ExtensionMsg , InstantiateMsg , MigrateMsg , QueryMsg ,
7
7
} ;
@@ -34,7 +34,7 @@ pub mod entry {
34
34
env : Env ,
35
35
info : MessageInfo ,
36
36
msg : InstantiateMsg ,
37
- ) -> Result < Response , ContractError > {
37
+ ) -> Result < Response , Cw721ContractError > {
38
38
cw2:: set_contract_version ( deps. storage , CONTRACT_NAME , CONTRACT_VERSION ) ?;
39
39
Cw721VoucherContract :: default ( ) . instantiate ( deps. branch ( ) , & env, & info, msg)
40
40
}
@@ -45,24 +45,17 @@ pub mod entry {
45
45
env : Env ,
46
46
info : MessageInfo ,
47
47
msg : ExecuteMsg ,
48
- ) -> Result < Response , ContractError > {
48
+ ) -> Result < Response , Cw721ContractError > {
49
49
Cw721VoucherContract :: default ( ) . execute ( deps, & env, & info, msg)
50
50
}
51
51
52
52
#[ 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) ;
62
55
}
63
56
64
57
#[ 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 > {
66
59
let contract_version_metadata = cw2:: get_contract_version ( deps. storage ) ?;
67
60
let storage_contract_name = contract_version_metadata. contract . as_str ( ) ;
68
61
if storage_contract_name != CONTRACT_NAME {
0 commit comments