We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 540412d commit 5e95c84Copy full SHA for 5e95c84
src/infrastructure/TransactionHttp.ts
@@ -156,7 +156,7 @@ export class TransactionHttp extends Http implements TransactionRepository {
156
* @returns Observable<TransactionAnnounceResponse>
157
*/
158
public announce(signedTransaction: SignedTransaction): Observable<TransactionAnnounceResponse> {
159
- if (signedTransaction.type !== TransactionType.AGGREGATE_BONDED) {
+ if (signedTransaction.type === TransactionType.AGGREGATE_BONDED) {
160
throw new Error('Announcing aggregate bonded transaction should use \'announceAggregateBonded\'');
161
}
162
return observableFrom(this.transactionRoutesApi.announceTransaction(signedTransaction)).pipe(
0 commit comments