Fix tests and warnigns

This commit is contained in:
nicolas.dorier
2022-08-04 12:42:15 +09:00
parent 6239f9da75
commit 1854fd307f
3 changed files with 3 additions and 4 deletions

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))