Skip to content

Commit

Permalink
fix: cargo fmt check fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
gcranju authored and redlarva committed Sep 6, 2023
1 parent 25fc4d3 commit 30ae5ac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
3 changes: 1 addition & 2 deletions contracts/cosmwasm-vm/cw-xcall/src/execute_call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ impl<'a> CwCallService<'a> {
cosmwasm_std::SubMsgResult::Err(err) => {
let code = CallServiceResponseType::CallServiceResponseFailure;
let error_message = format!("CallService Reverted : {err}");
let message_response =
CSMessageResponse::new(request.sequence_no(), code.clone());
let message_response = CSMessageResponse::new(request.sequence_no(), code.clone());
let event = event_call_executed(req_id, code.into(), &error_message);
(message_response, event)
}
Expand Down
5 changes: 1 addition & 4 deletions contracts/cosmwasm-vm/cw-xcall/src/handle_call_message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,7 @@ impl<'a> CwCallService<'a> {
info: MessageInfo,
sn: u128,
) -> Result<Response, ContractError> {
let msg = CSMessageResponse::new(
sn,
CallServiceResponseType::CallServiceResponseFailure,
);
let msg = CSMessageResponse::new(sn, CallServiceResponseType::CallServiceResponseFailure);
self.handle_response(deps, info, &rlp::encode(&msg))
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,7 @@ fn test_failed_reply_message() {
}

#[test]
#[should_panic(
expected = "td(NotFound { kind: \"cw_xcall::types::request::CSMessageRequest\" })"
)]
#[should_panic(expected = "td(NotFound { kind: \"cw_xcall::types::request::CSMessageRequest\" })")]
fn test_invalid_sequence_no() {
let deps = mock_dependencies();
let contract = CwCallService::new();
Expand Down

0 comments on commit 30ae5ac

Please sign in to comment.