add isParticl param to relevant bitcoindart calls

This commit is contained in:
sneurlax 2022-11-30 13:28:12 -06:00
parent b575418e8f
commit f0f008471c

View file

@ -3308,7 +3308,7 @@ class ParticlWallet extends CoinServiceAPI {
for (var i = 0; i < utxosToUse.length; i++) { for (var i = 0; i < utxosToUse.length; i++) {
final txid = utxosToUse[i].txid; final txid = utxosToUse[i].txid;
txb.addInput(txid, utxosToUse[i].vout, null, txb.addInput(txid, utxosToUse[i].vout, null,
utxoSigningData[txid]["output"] as Uint8List); utxoSigningData[txid]["output"] as Uint8List, '', true);
} }
// Add transaction output // Add transaction output
@ -3321,11 +3321,11 @@ class ParticlWallet extends CoinServiceAPI {
for (var i = 0; i < utxosToUse.length; i++) { for (var i = 0; i < utxosToUse.length; i++) {
final txid = utxosToUse[i].txid; final txid = utxosToUse[i].txid;
txb.sign( txb.sign(
vin: i, vin: i,
keyPair: utxoSigningData[txid]["keyPair"] as ECPair, keyPair: utxoSigningData[txid]["keyPair"] as ECPair,
witnessValue: utxosToUse[i].value, witnessValue: utxosToUse[i].value,
redeemScript: utxoSigningData[txid]["redeemScript"] as Uint8List?, redeemScript: utxoSigningData[txid]["redeemScript"] as Uint8List?,
); isParticl: true);
} }
} catch (e, s) { } catch (e, s) {
Logging.instance.log("Caught exception while signing transaction: $e\n$s", Logging.instance.log("Caught exception while signing transaction: $e\n$s",