Commit 27c4e89
fix(abstract-utxo): normalize address comparison in parseOutput
When comparing addresses, normalize them to a standard script format to ensure
accurate matching regardless of address representation.
We can now pass `txParams.txRecipients` to `parseOutputs`. It previously passed
`expectedOutputs`, which did multiple things at once:
- Normalize the address format for comparison (which is what we wanted)
- Append the changeAddress in certain cases (which is not desired in
parseOutput)
This allows us to change the `toExpectedOutputs` function.
Issue: BTC-2962
Co-authored-by: llm-git <llm-git@ttll.de>1 parent 3a2037f commit 27c4e89
2 files changed
Lines changed: 5 additions & 2 deletions
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
284 | 285 | | |
285 | 286 | | |
286 | 287 | | |
287 | | - | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
288 | 291 | | |
289 | 292 | | |
290 | 293 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| |||
0 commit comments