Fixes for generation of payment data for electrum wallet

This commit is contained in:
M 2022-01-14 15:07:41 +02:00
parent 6a2f965298
commit 109db68d07

View file

@ -270,7 +270,9 @@ abstract class ElectrumWalletBase extends WalletBase<ElectrumBalance,
if (input.isP2wpkh) {
final p2wpkh = bitcoin
.P2WPKH(
data: generatePaymentData(hd: hd, index: input.address.index),
data: generatePaymentData(
hd: input.address.isHidden ? walletAddresses.sideHd : walletAddresses.mainHd,
index: input.address.index),
network: networkType)
.data;