mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-08 20:09:24 +00:00
Fix for case if using hidden address for input for electrum wallet.
This commit is contained in:
parent
1a0d33ee31
commit
caae0bec31
1 changed files with 3 additions and 1 deletions
|
@ -307,7 +307,9 @@ abstract class ElectrumWalletBase extends WalletBase<ElectrumBalance,
|
|||
for (var i = 0; i < inputs.length; i++) {
|
||||
final input = inputs[i];
|
||||
final keyPair = generateKeyPair(
|
||||
hd: hd, index: input.address.index, network: networkType);
|
||||
hd: input.address.isHidden ? walletAddresses.sideHd : walletAddresses.mainHd,
|
||||
index: input.address.index,
|
||||
network: networkType);
|
||||
final witnessValue = input.isP2wpkh ? input.value : null;
|
||||
|
||||
txb.sign(vin: i, keyPair: keyPair, witnessValue: witnessValue);
|
||||
|
|
Loading…
Reference in a new issue