This commit is contained in:
Kukks 2023-06-28 13:15:50 +02:00 committed by Dennis Reimann
parent a34bdd8557
commit 998032c6c8
No known key found for this signature in database
GPG key ID: 5009E1797F03F8D0
2 changed files with 5 additions and 4 deletions

View file

@ -106,8 +106,9 @@ public class BtcPayAppController : Controller
Key = key.Id, Key = key.Id,
StoreId = store.Id, StoreId = store.Id,
UserId = res.UserId, UserId = res.UserId,
ExistingWallet = onchain?.AccountDerivation?.ToString(), ExistingWallet = onchain?.AccountDerivation?.GetExtPubKeys()?.FirstOrDefault()?.ToString(onchain.Network.NBitcoinNetwork),
ExistingWalletSeed = onchainSeed ExistingWalletSeed = onchainSeed,
Network = _btcPayNetworkProvider.GetNetwork<BTCPayNetwork>("BTC").NBitcoinNetwork.Name
}); });
} }
@ -127,5 +128,6 @@ public class BtcPayAppController : Controller
public string? ExistingWallet { get; set; } public string? ExistingWallet { get; set; }
public string? ExistingWalletSeed { get; set; } public string? ExistingWalletSeed { get; set; }
public string Network { get; set; }
} }
} }

View file

@ -190,7 +190,7 @@
</div> </div>
@inject BtcPayAppService BtcPayAppService @inject BtcPayAppService BtcPayAppService
@inject UserManager<ApplicationUser> UserManager @inject UserManager<ApplicationUser> UserManager
<div id="LightningNodeType-@LightningNodeType.BTCPayApp" class="pt-3 tab-pane fade @(Model.LightningNodeType == LightningNodeType.BTCPayApp ? "show active" : "")" role="tabpanel" aria-labelledby="LightningNodeType-@LightningNodeType.BTCPayApp"> <div id="BTCPayAppSetup" class="pt-3 tab-pane fade @(Model.LightningNodeType == LightningNodeType.BTCPayApp ? "show active" : "")" role="tabpanel" aria-labelledby="LightningNodeType-@LightningNodeType.BTCPayApp">
@{ @{
var code = await BtcPayAppService.GeneratePairingCode(Context.GetStoreData().Id, UserManager.GetUserId(User)); var code = await BtcPayAppService.GeneratePairingCode(Context.GetStoreData().Id, UserManager.GetUserId(User));
var url = Url.ActionLink("StartPair","BtcPayApp", new { code }); var url = Url.ActionLink("StartPair","BtcPayApp", new { code });
@ -202,7 +202,6 @@
</button> </button>
</div> </div>
} }
<vc:qr-code data=""></vc:qr-code>
</div> </div>
<vc:ui-extension-point location="ln-payment-method-setup-tab" model="@Model"/> <vc:ui-extension-point location="ln-payment-method-setup-tab" model="@Model"/>
</div> </div>