1
- use crate :: msg:: { ExecuteMsg , Extension , InstantiateMsg , MigrateMsg , QueryMsg } ;
2
- use cosmwasm_std:: Empty ;
3
- pub use cw721_base:: { ContractError , MinterResponse } ;
1
+ pub use cw721:: msg:: MinterResponse ;
2
+ pub use cw721:: traits:: { Cw721Execute , Cw721Query } ;
3
+ pub use cw721_base:: error:: ContractError ;
4
+ pub use cw721_base:: msg:: { ExecuteMsg , InstantiateMsg , MigrateMsg , QueryMsg } ;
4
5
5
6
const CONTRACT_NAME : & str = concat ! ( "crates.io:drop-staking__" , env!( "CARGO_PKG_NAME" ) ) ;
6
7
const CONTRACT_VERSION : & str = env ! ( "CARGO_PKG_VERSION" ) ;
7
8
8
- pub type Cw721VoucherContract < ' a > = cw721_base:: Cw721Contract < ' a , Extension , Empty , Empty , Empty > ;
9
+ pub type Cw721VoucherContract < ' a > = cw721_base:: Cw721BaseContract < ' a > ;
9
10
10
11
#[ cfg( not( feature = "library" ) ) ]
11
12
pub mod entry {
12
13
use super :: * ;
13
14
14
- use cosmwasm_std:: { Binary , Deps , DepsMut , Env , MessageInfo , Response , StdError , StdResult } ;
15
+ use cosmwasm_std:: { Binary , Deps , DepsMut , Env , MessageInfo , Response , StdError } ;
15
16
16
17
// This makes a conscious choice on the various generics used by the contract
17
18
#[ cosmwasm_std:: entry_point]
@@ -20,9 +21,9 @@ pub mod entry {
20
21
env : Env ,
21
22
info : MessageInfo ,
22
23
msg : InstantiateMsg ,
23
- ) -> StdResult < Response > {
24
+ ) -> Result < Response , ContractError > {
24
25
cw2:: set_contract_version ( deps. storage , CONTRACT_NAME , CONTRACT_VERSION ) ?;
25
- Cw721VoucherContract :: default ( ) . instantiate ( deps. branch ( ) , env, info, msg)
26
+ Cw721VoucherContract :: default ( ) . instantiate ( deps. branch ( ) , & env, & info, msg)
26
27
}
27
28
28
29
#[ cosmwasm_std:: entry_point]
@@ -32,12 +33,12 @@ pub mod entry {
32
33
info : MessageInfo ,
33
34
msg : ExecuteMsg ,
34
35
) -> Result < Response , ContractError > {
35
- Cw721VoucherContract :: default ( ) . execute ( deps, env, info, msg)
36
+ Cw721VoucherContract :: default ( ) . execute ( deps, & env, & info, msg)
36
37
}
37
38
38
39
#[ cosmwasm_std:: entry_point]
39
- pub fn query ( deps : Deps , env : Env , msg : QueryMsg ) -> StdResult < Binary > {
40
- Cw721VoucherContract :: default ( ) . query ( deps, env, msg)
40
+ pub fn query ( deps : Deps , env : Env , msg : QueryMsg ) -> Result < Binary , ContractError > {
41
+ Cw721VoucherContract :: default ( ) . query ( deps, & env, msg)
41
42
}
42
43
43
44
#[ cosmwasm_std:: entry_point]
0 commit comments