File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,7 @@ class Psbt {
133
133
address = ( 0 , address_1 . fromOutputScript ) (
134
134
output . script ,
135
135
this . opts . network ,
136
+ this . __CACHE . __EC_LIB ,
136
137
) ;
137
138
} catch ( _ ) { }
138
139
return {
@@ -235,7 +236,11 @@ class Psbt {
235
236
const { address } = outputData ;
236
237
if ( typeof address === 'string' ) {
237
238
const { network } = this . opts ;
238
- const script = ( 0 , address_1 . toOutputScript ) ( address , network ) ;
239
+ const script = ( 0 , address_1 . toOutputScript ) (
240
+ address ,
241
+ network ,
242
+ this . __CACHE . __EC_LIB ,
243
+ ) ;
239
244
outputData = Object . assign ( outputData , { script } ) ;
240
245
}
241
246
const c = this . __CACHE ;
Original file line number Diff line number Diff line change @@ -190,7 +190,11 @@ export class Psbt {
190
190
return this . __CACHE . __TX . outs . map ( output => {
191
191
let address ;
192
192
try {
193
- address = fromOutputScript ( output . script , this . opts . network ) ;
193
+ address = fromOutputScript (
194
+ output . script ,
195
+ this . opts . network ,
196
+ this . __CACHE . __EC_LIB ,
197
+ ) ;
194
198
} catch ( _ ) { }
195
199
return {
196
200
script : cloneBuffer ( output . script ) ,
@@ -304,7 +308,7 @@ export class Psbt {
304
308
const { address } = outputData as any ;
305
309
if ( typeof address === 'string' ) {
306
310
const { network } = this . opts ;
307
- const script = toOutputScript ( address , network ) ;
311
+ const script = toOutputScript ( address , network , this . __CACHE . __EC_LIB ) ;
308
312
outputData = Object . assign ( outputData , { script } ) ;
309
313
}
310
314
const c = this . __CACHE ;
You can’t perform that action at this time.
0 commit comments