message: Update client/lib/parsing.rs
diff: @@ -533,24 +533,24 @@ pub(crate) fn get_transfer_target(
  target_purse: &str,
  ) -> Result<TransferTarget> {
  match (target_account, target_purse) {
  - (account, purse) if (account.is_empty() && purse.is_empty()) || (!account.is_empty() && !purse.is_empty()) => {
  - Err(Error::InvalidArgument(
  - "target_account | target_purse",
  - format!(
  - "Invalid arguments to get_transfer_target - must provide either a target account or purse. account={}, purse={}",
  - account, purse
  - )
  - ))
  - }
  - (target_account, target_purse) if target_account.is_empty() => {
  + ("", _) if !target_purse.is_empty() => {
  let purse = purse(target_purse)?;
  Ok(TransferTarget::OwnPurse(purse))
  }
  - (target_account, target_purse) if target_purse.is_empty() => {
  + (_, "") if !target_account.is_empty() => {
  let account = account(target_account)?;
  Ok(TransferTarget::Account(account))
  }
  - _ => unreachable!()
  + _ => {
  + Err(Error::InvalidArgument(
  + "target_account | target_purse",
  + format!(
  + "Invalid arguments to get_transfer_target - must provide either a target \
  + account or purse. account={}, purse={}",
  + target_account, target_purse
  + )
  + ))
  + }
  }
  }
  