Remove replace hardcoded BTC string to default network (#3654)

This commit is contained in:
Nicolas Dorier
2022-04-20 10:20:39 +09:00
committed by GitHub
parent 75afd30008
commit 2e08c29c64
6 changed files with 13 additions and 10 deletions

View File

@@ -21,7 +21,7 @@ namespace BTCPayServer.Components.StoreRecentTransactions;
public class StoreRecentTransactions : ViewComponent
{
private const string CryptoCode = "BTC";
private string CryptoCode;
private readonly StoreRepository _storeRepo;
private readonly ApplicationDbContextFactory _dbContextFactory;
private readonly BTCPayWalletProvider _walletProvider;
@@ -41,6 +41,7 @@ public class StoreRecentTransactions : ViewComponent
ConnectionFactory = connectionFactory;
_walletProvider = walletProvider;
_dbContextFactory = dbContextFactory;
CryptoCode = networkProvider.DefaultNetwork.CryptoCode;
}