Skip to content

Commit

Permalink
fix(core-transaction-pool): union type with number in pool query (#3857)
Browse files Browse the repository at this point in the history
  • Loading branch information
rainydio authored Jun 30, 2020
1 parent c7d8242 commit cf43417
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface Query {
export interface QueryIterable extends Iterable<Interfaces.ITransaction> {
wherePredicate(predicate: QueryPredicate): QueryIterable;
whereId(id: string): QueryIterable;
whereType(type: Enums.TransactionType): QueryIterable;
whereType(type: Enums.TransactionType | number): QueryIterable;
whereTypeGroup(typeGroup: Enums.TransactionTypeGroup | number): QueryIterable;
whereVersion(version: number): QueryIterable;
whereKind(transaction: Interfaces.ITransaction): QueryIterable;
Expand Down
2 changes: 1 addition & 1 deletion packages/core-transaction-pool/src/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class QueryIterable implements Contracts.TransactionPool.QueryIterable {
return this.wherePredicate((t) => t.id === id);
}

public whereType(type: Enums.TransactionType): QueryIterable {
public whereType(type: Enums.TransactionType | number): QueryIterable {
return this.wherePredicate((t) => t.type === type);
}

Expand Down

0 comments on commit cf43417

Please sign in to comment.