Skip to content

Commit 5e95c84

Browse files
committed
Fixed bug on transactionHttp aggregateBonded announce check
1 parent 540412d commit 5e95c84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/infrastructure/TransactionHttp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export class TransactionHttp extends Http implements TransactionRepository {
156156
* @returns Observable<TransactionAnnounceResponse>
157157
*/
158158
public announce(signedTransaction: SignedTransaction): Observable<TransactionAnnounceResponse> {
159-
if (signedTransaction.type !== TransactionType.AGGREGATE_BONDED) {
159+
if (signedTransaction.type === TransactionType.AGGREGATE_BONDED) {
160160
throw new Error('Announcing aggregate bonded transaction should use \'announceAggregateBonded\'');
161161
}
162162
return observableFrom(this.transactionRoutesApi.announceTransaction(signedTransaction)).pipe(

0 commit comments

Comments
 (0)