Commit 52032dc
committed
refactor(abstract-utxo): eliminate fetchInputs by reusing explainPsbtWasm inputAmount
The legacy getTxInputs branch is unreachable (decodeTransaction throws
ErrorDeprecatedTxFormat for non-PSBT input), and getPsbtTxInputs's only
remaining caller in verifyTransaction just sums input values to check
fee >= 0. explainPsbtWasm already returns inputAmount, so reuse that
and delete fetchInputs.ts entirely.
Refs: T1-32791 parent ac76231 commit 52032dc
3 files changed
Lines changed: 1 addition & 110 deletions
This file was deleted.
Lines changed: 1 addition & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
10 | 9 | | |
11 | 10 | | |
12 | | - | |
13 | 11 | | |
14 | 12 | | |
15 | 13 | | |
| |||
201 | 199 | | |
202 | 200 | | |
203 | 201 | | |
204 | | - | |
205 | 202 | | |
206 | 203 | | |
207 | 204 | | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | 205 | | |
228 | 206 | | |
229 | 207 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
0 commit comments