Fix tests and warnigns

This commit is contained in:
nicolas.dorier 2022-08-04 12:42:15 +09:00
parent 6239f9da75
commit 1854fd307f
No known key found for this signature in database
GPG key ID: 6618763EF09186FE
3 changed files with 3 additions and 4 deletions

View file

@ -452,7 +452,7 @@ namespace BTCPayServer.Controllers
}
}
}
catch (Exception e)
catch (Exception)
{
return BadRequest();
}

View file

@ -551,8 +551,7 @@ namespace BTCPayServer.Controllers
if (this.GetCurrentStore().Role != StoreRoles.Owner)
return Forbid();
var settings = (this.GetCurrentStore().GetDerivationSchemeSettings(_NetworkProvider, network.CryptoCode));
var derivationScheme = settings.AccountDerivation;
var derivationScheme = (this.GetCurrentStore().GetDerivationSchemeSettings(_NetworkProvider, network.CryptoCode))?.AccountDerivation;
if (derivationScheme is null)
return NotSupported("This feature is only available to BTC wallets");
var bumpableAddresses = (await GetAddresses(selectedItems))

View file

@ -578,7 +578,7 @@ namespace BTCPayServer.Controllers
public async Task<IActionResult> WalletSend(
[ModelBinder(typeof(WalletIdModelBinder))]
WalletId walletId, WalletSendModel vm, string command = "", CancellationToken cancellation = default,
string bip21 = "")
string? bip21 = "")
{
if (walletId?.StoreId == null)
return NotFound();