@@ -30,7 +30,7 @@ pub fn execute(
30
30
) -> Result < Response < CustomMsg > , ReflectError > {
31
31
match msg {
32
32
ExecuteMsg :: ReflectMsg { msgs } => try_reflect ( deps, env, info, msgs) ,
33
- ExecuteMsg :: ReflectSubCall { msgs } => try_reflect_subcall ( deps, env, info, msgs) ,
33
+ ExecuteMsg :: ReflectSubMsg { msgs } => try_reflect_subcall ( deps, env, info, msgs) ,
34
34
ExecuteMsg :: ChangeOwner { owner } => try_change_owner ( deps, env, info, owner) ,
35
35
}
36
36
}
@@ -126,7 +126,7 @@ pub fn query(deps: Deps, _env: Env, msg: QueryMsg) -> StdResult<QueryResponse> {
126
126
QueryMsg :: Capitalized { text } => to_binary ( & query_capitalized ( deps, text) ?) ,
127
127
QueryMsg :: Chain { request } => to_binary ( & query_chain ( deps, & request) ?) ,
128
128
QueryMsg :: Raw { contract, key } => to_binary ( & query_raw ( deps, contract, key) ?) ,
129
- QueryMsg :: SubCallResult { id } => to_binary ( & query_subcall ( deps, id) ?) ,
129
+ QueryMsg :: SubMsgResult { id } => to_binary ( & query_subcall ( deps, id) ?) ,
130
130
}
131
131
}
132
132
@@ -180,7 +180,7 @@ mod tests {
180
180
use cosmwasm_std:: testing:: { mock_env, mock_info, MOCK_CONTRACT_ADDR } ;
181
181
use cosmwasm_std:: {
182
182
coin, coins, from_binary, AllBalanceResponse , BankMsg , BankQuery , Binary , ContractResult ,
183
- Event , StakingMsg , StdError , SubcallResponse ,
183
+ Event , StakingMsg , StdError , SubMsgExecutionResponse ,
184
184
} ;
185
185
186
186
#[ test]
@@ -415,7 +415,7 @@ mod tests {
415
415
id,
416
416
) ;
417
417
418
- let msg = ExecuteMsg :: ReflectSubCall {
418
+ let msg = ExecuteMsg :: ReflectSubMsg {
419
419
msgs : vec ! [ payload. clone( ) ] ,
420
420
} ;
421
421
let info = mock_info ( "creator" , & [ ] ) ;
@@ -437,7 +437,7 @@ mod tests {
437
437
let id = 123u64 ;
438
438
let data = Binary :: from ( b"foobar" ) ;
439
439
let events = vec ! [ Event :: new( "message" ) . attr( "signer" , "caller-addr" ) ] ;
440
- let result = ContractResult :: Ok ( SubcallResponse {
440
+ let result = ContractResult :: Ok ( SubMsgExecutionResponse {
441
441
events : events. clone ( ) ,
442
442
data : Some ( data. clone ( ) ) ,
443
443
} ) ;
@@ -449,12 +449,12 @@ mod tests {
449
449
let qres = query (
450
450
deps. as_ref ( ) ,
451
451
mock_env ( ) ,
452
- QueryMsg :: SubCallResult { id : 65432 } ,
452
+ QueryMsg :: SubMsgResult { id : 65432 } ,
453
453
) ;
454
454
assert ! ( qres. is_err( ) ) ;
455
455
456
456
// query for the real id
457
- let raw = query ( deps. as_ref ( ) , mock_env ( ) , QueryMsg :: SubCallResult { id } ) . unwrap ( ) ;
457
+ let raw = query ( deps. as_ref ( ) , mock_env ( ) , QueryMsg :: SubMsgResult { id } ) . unwrap ( ) ;
458
458
let qres: Reply = from_binary ( & raw ) . unwrap ( ) ;
459
459
assert_eq ! ( qres. id, id) ;
460
460
let result = qres. result . unwrap ( ) ;
0 commit comments