mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-20 13:34:37 +01:00
Fix tests and warnigns
This commit is contained in:
parent
6239f9da75
commit
1854fd307f
3 changed files with 3 additions and 4 deletions
|
@ -452,7 +452,7 @@ namespace BTCPayServer.Controllers
|
|||
}
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (Exception)
|
||||
{
|
||||
return BadRequest();
|
||||
}
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue