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 e157d43 commit 540412dCopy full SHA for 540412d
src/infrastructure/TransactionHttp.ts
@@ -156,6 +156,9 @@ 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) {
160
+ throw new Error('Announcing aggregate bonded transaction should use \'announceAggregateBonded\'');
161
+ }
162
return observableFrom(this.transactionRoutesApi.announceTransaction(signedTransaction)).pipe(
163
map((response: { response: ClientResponse; body: AnnounceTransactionInfoDTO; } ) => {
164
const transactionAnnounceResponseDTO = response.body;
0 commit comments