fix bug if selecting segwit with vault

This commit is contained in:
nicolas.dorier 2019-12-04 21:52:48 +09:00
parent ab7c124302
commit a1d82b0e8b
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -241,7 +241,7 @@ namespace BTCPayServer.Controllers
ScriptPubKeyType = ScriptPubKeyType.Segwit
});
}
if (addressType == "segwitWrapped")
else if (addressType == "segwitWrapped")
{
keyPath = new KeyPath("49'").Derive(network.CoinType).Derive(accountNumber, true);
xpub = await device.GetXPubAsync(keyPath);