@@ -30,7 +30,7 @@ pub fn execute(
3030) -> Result < Response < CustomMsg > , ReflectError > {
3131 match msg {
3232 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) ,
3434 ExecuteMsg :: ChangeOwner { owner } => try_change_owner ( deps, env, info, owner) ,
3535 }
3636}
@@ -126,7 +126,7 @@ pub fn query(deps: Deps, _env: Env, msg: QueryMsg) -> StdResult<QueryResponse> {
126126 QueryMsg :: Capitalized { text } => to_binary ( & query_capitalized ( deps, text) ?) ,
127127 QueryMsg :: Chain { request } => to_binary ( & query_chain ( deps, & request) ?) ,
128128 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) ?) ,
130130 }
131131}
132132
@@ -180,7 +180,7 @@ mod tests {
180180 use cosmwasm_std:: testing:: { mock_env, mock_info, MOCK_CONTRACT_ADDR } ;
181181 use cosmwasm_std:: {
182182 coin, coins, from_binary, AllBalanceResponse , BankMsg , BankQuery , Binary , ContractResult ,
183- Event , StakingMsg , StdError , SubcallResponse ,
183+ Event , StakingMsg , StdError , SubMsgExecutionResponse ,
184184 } ;
185185
186186 #[ test]
@@ -415,7 +415,7 @@ mod tests {
415415 id,
416416 ) ;
417417
418- let msg = ExecuteMsg :: ReflectSubCall {
418+ let msg = ExecuteMsg :: ReflectSubMsg {
419419 msgs : vec ! [ payload. clone( ) ] ,
420420 } ;
421421 let info = mock_info ( "creator" , & [ ] ) ;
@@ -437,7 +437,7 @@ mod tests {
437437 let id = 123u64 ;
438438 let data = Binary :: from ( b"foobar" ) ;
439439 let events = vec ! [ Event :: new( "message" ) . attr( "signer" , "caller-addr" ) ] ;
440- let result = ContractResult :: Ok ( SubcallResponse {
440+ let result = ContractResult :: Ok ( SubMsgExecutionResponse {
441441 events : events. clone ( ) ,
442442 data : Some ( data. clone ( ) ) ,
443443 } ) ;
@@ -449,12 +449,12 @@ mod tests {
449449 let qres = query (
450450 deps. as_ref ( ) ,
451451 mock_env ( ) ,
452- QueryMsg :: SubCallResult { id : 65432 } ,
452+ QueryMsg :: SubMsgResult { id : 65432 } ,
453453 ) ;
454454 assert ! ( qres. is_err( ) ) ;
455455
456456 // 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 ( ) ;
458458 let qres: Reply = from_binary ( & raw ) . unwrap ( ) ;
459459 assert_eq ! ( qres. id, id) ;
460460 let result = qres. result . unwrap ( ) ;
0 commit comments