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

View File

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