Skip to content

Commit

Permalink
fix: add type for TransactionOutput.condition
Browse files Browse the repository at this point in the history
Signed-off-by: getlarge <ed@getlarge.eu>
  • Loading branch information
getlarge committed Mar 10, 2021
1 parent 44dfc8f commit 1779f6e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions types/transaction.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ export interface TransactionInput {
}
export interface TransactionOutput {
amount: string;
// TODO: specifiy JSON conditions
condition: any[];
condition:
| PreimageSha256JSONCondition
| ThresholdSha256JSONCondition
| Ed25519Sha256JSONCondition;
public_keys: string[];
}

Expand Down

0 comments on commit 1779f6e

Please sign in to comment.