File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ class Psbt {
122
122
return this . __CACHE . __TX . outs . map ( output => ( {
123
123
script : bufferutils_1 . cloneBuffer ( output . script ) ,
124
124
value : output . value ,
125
+ address : address_1 . fromOutputScript ( output . script , this . opts . network ) ,
125
126
} ) ) ;
126
127
}
127
128
combine ( ...those ) {
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import {
13
13
TransactionInput ,
14
14
} from 'bip174/src/lib/interfaces' ;
15
15
import { checkForInput } from 'bip174/src/lib/utils' ;
16
- import { toOutputScript } from './address' ;
16
+ import { fromOutputScript , toOutputScript } from './address' ;
17
17
import { cloneBuffer , reverseBuffer } from './bufferutils' ;
18
18
import { hash160 } from './crypto' ;
19
19
import {
@@ -159,6 +159,7 @@ export class Psbt {
159
159
return this . __CACHE . __TX . outs . map ( output => ( {
160
160
script : cloneBuffer ( output . script ) ,
161
161
value : output . value ,
162
+ address : fromOutputScript ( output . script , this . opts . network ) ,
162
163
} ) ) ;
163
164
}
164
165
You can’t perform that action at this time.
0 commit comments