Skip to content
Snippets Groups Projects
Commit c022321b authored by Mahdi Yari's avatar Mahdi Yari
Browse files

better error handling

parent 8db8ad6a
No related branches found
No related tags found
No related merge requests found
......@@ -356,7 +356,8 @@ export class BroadcastAPI {
transaction: SignedTransaction
): Promise<TransactionConfirmation> {
const trxId = cryptoUtils.generateTrxId(transaction)
return Object.assign({ id: trxId }, this.call('broadcast_transaction', [transaction]))
const result = await this.call('broadcast_transaction', [transaction])
return Object.assign({ id: trxId }, result)
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment