Skip to content

Commit d492ce2

Browse files
committed
doc: correct misuse of tx.inputs.sort(Tx.sortInputs)
1 parent 83175c6 commit d492ce2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,8 +491,8 @@ Tx.createLegacyTx(coins, outputs, changeOutput);
491491
* - `txDraft.change.address` MUST be set before signing the transaction
492492
*
493493
* BIP-69 Secure Sorting must be done AFTER setting each `address`
494-
* - `Tx.sortInputs(txDraft.inputs)`
495-
* - `Tx.sortOutputs(txDraft.outputs)`
494+
* - `txDraft.inputs.sort(Tx.sortInputs)`
495+
* - `txDraft.outputs.sort(Tx.sortOutputs)`
496496
*/
497497
let txDraft = tx.legacy.draftSingleOutput({ utxos, inputs, output });
498498

0 commit comments

Comments
 (0)