Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Fix txOutputs
Browse files Browse the repository at this point in the history
  • Loading branch information
junderw committed Sep 11, 2020
1 parent 3a54c73 commit 5e3442b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions ts_src/psbt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export interface PsbtTxInput extends TransactionInput {
hash: Buffer;
}

export interface PsbtTxOutput extends Output {
address: string;
export interface PsbtTxOutput extends TransactionOutput {
address: string | undefined;
}

/**
Expand Down Expand Up @@ -171,7 +171,7 @@ export class Psbt {
}));
}

get txOutputs(): TransactionOutput[] {
get txOutputs(): PsbtTxOutput[] {
return this.__CACHE.__TX.outs.map(output => {
let address;
try {
Expand Down
8 changes: 4 additions & 4 deletions types/psbt.d.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { Psbt as PsbtBase } from 'bip174';
import { KeyValue, PsbtGlobalUpdate, PsbtInput, PsbtInputUpdate, PsbtOutput, PsbtOutputUpdate, TransactionInput } from 'bip174/src/lib/interfaces';
import { KeyValue, PsbtGlobalUpdate, PsbtInput, PsbtInputUpdate, PsbtOutput, PsbtOutputUpdate, TransactionInput, TransactionOutput } from 'bip174/src/lib/interfaces';
import { Signer, SignerAsync } from './ecpair';
import { Network } from './networks';
import { Output, Transaction } from './transaction';
import { Transaction } from './transaction';
export interface PsbtTxInput extends TransactionInput {
hash: Buffer;
}
export interface PsbtTxOutput extends Output {
address: string;
export interface PsbtTxOutput extends TransactionOutput {
address: string | undefined;
}
/**
* Psbt class can parse and generate a PSBT binary based off of the BIP174.
Expand Down

0 comments on commit 5e3442b

Please sign in to comment.