Skip to content

Commit

Permalink
fix: makeoutput input type
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 71fe66c commit d5fd300
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions types/transaction.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@ import type {
PreimageSha256,
ThresholdSha256,
} from 'crypto-conditions';
import { TypeId } from 'crypto-conditions/types/types';
import {
Ed25519Sha256JSONCondition,
JSONConditions,
JSONConditionUnion,
PreimageSha256JSONCondition,
ThresholdSha256JSONCondition,
} from './utils/ccJsonify';
Expand Down Expand Up @@ -166,12 +163,10 @@ export default class Transaction {
): TransactionInput;

static makeOutput(
condition: JSONConditionUnion,
amount: string = '1'
): TransactionOutput;

static makeOutput<T = TypeId.Ed25519Sha256>(
condition: JSONConditions[T],
condition:
| PreimageSha256JSONCondition
| ThresholdSha256JSONCondition
| Ed25519Sha256JSONCondition,
amount: string = '1'
): TransactionOutput;

Expand Down

0 comments on commit d5fd300

Please sign in to comment.