Use nameof instead of hardcoded param name
MODIFY
WalletWasabi.Backend/Controllers/BatchController.cs
WalletWasabi.Backend/Controllers/BatchController.cs
@@ -55,7 +55,7 @@ namespace WalletWasabi.Backend.Controllers
if (!uint256.TryParse(bestKnownBlockHash, out var knownHash))
{
- return BadRequest("Invalid bestKnownBlockHash.");
+ return BadRequest($"Invalid {nameof(bestKnownBlockHash)}.");
}
(Height bestHeight, IEnumerable<FilterModel> filters) = Global.IndexBuilderService.GetFilterLinesExcluding(knownHash, maxNumberOfFilters, out bool found);

Use nameof instead of hardcoded param name

Co-Authored-By: yahiheb <52379387+yahiheb@users.noreply.github.com>