Skip to content

Commit 42e8cec

Browse files
committed
fix: witness field parsing in particl updateTransactions
1 parent 8b82eb1 commit 42e8cec

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

lib/wallets/wallet/impl/particl_wallet.dart

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -239,17 +239,12 @@ class ParticlWallet<T extends ElectrumXCurrencyInterface>
239239
addresses.addAll(prevOut.addresses);
240240
}
241241

242-
InputV2 input = InputV2.isarCantDoRequiredInDefaultConstructor(
243-
scriptSigHex: map["scriptSig"]?["hex"] as String?,
244-
scriptSigAsm: map["scriptSig"]?["asm"] as String?,
245-
sequence: map["sequence"] as int?,
242+
InputV2 input = InputV2.fromElectrumxJson(
243+
json: map,
246244
outpoint: outpoint,
247-
valueStringSats: valueStringSats,
248245
addresses: addresses,
249-
witness: map["witness"] as String?,
246+
valueStringSats: valueStringSats,
250247
coinbase: coinbase,
251-
innerRedeemScriptAsm: map["innerRedeemscriptAsm"] as String?,
252-
// Need addresses before we can know if the wallet owns this input.
253248
walletOwns: false,
254249
);
255250

0 commit comments

Comments
 (0)