mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Fix tests and warnigns
This commit is contained in:
@@ -452,7 +452,7 @@ namespace BTCPayServer.Controllers
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
return BadRequest();
|
return BadRequest();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -551,8 +551,7 @@ namespace BTCPayServer.Controllers
|
|||||||
if (this.GetCurrentStore().Role != StoreRoles.Owner)
|
if (this.GetCurrentStore().Role != StoreRoles.Owner)
|
||||||
return Forbid();
|
return Forbid();
|
||||||
|
|
||||||
var settings = (this.GetCurrentStore().GetDerivationSchemeSettings(_NetworkProvider, network.CryptoCode));
|
var derivationScheme = (this.GetCurrentStore().GetDerivationSchemeSettings(_NetworkProvider, network.CryptoCode))?.AccountDerivation;
|
||||||
var derivationScheme = settings.AccountDerivation;
|
|
||||||
if (derivationScheme is null)
|
if (derivationScheme is null)
|
||||||
return NotSupported("This feature is only available to BTC wallets");
|
return NotSupported("This feature is only available to BTC wallets");
|
||||||
var bumpableAddresses = (await GetAddresses(selectedItems))
|
var bumpableAddresses = (await GetAddresses(selectedItems))
|
||||||
|
|||||||
@@ -578,7 +578,7 @@ namespace BTCPayServer.Controllers
|
|||||||
public async Task<IActionResult> WalletSend(
|
public async Task<IActionResult> WalletSend(
|
||||||
[ModelBinder(typeof(WalletIdModelBinder))]
|
[ModelBinder(typeof(WalletIdModelBinder))]
|
||||||
WalletId walletId, WalletSendModel vm, string command = "", CancellationToken cancellation = default,
|
WalletId walletId, WalletSendModel vm, string command = "", CancellationToken cancellation = default,
|
||||||
string bip21 = "")
|
string? bip21 = "")
|
||||||
{
|
{
|
||||||
if (walletId?.StoreId == null)
|
if (walletId?.StoreId == null)
|
||||||
return NotFound();
|
return NotFound();
|
||||||
|
|||||||
Reference in New Issue
Block a user