Fix build error

Signed-off-by: James Zuccon <zuccon@gmail.com>
This commit is contained in:
James Zuccon
2024-09-06 16:00:14 +10:00
parent f66de86eb3
commit 52da32ad4d
+2 -1
View File
@@ -118,10 +118,11 @@ export class Blockchain {
this.pendingTransactions.removeTransaction(tx.toHashHex());
} catch (error) {
// TODO: Set these as a variable and then throw an ExtError.
this.pendingTransactions.removeDependentTransactions(tx.toHashHex());
throw new Error(
`Broadcast failed for ${transaction.getHashHex()}. Removing dependent transactions.`
`Broadcast failed for ${transaction.toHashHex()}. Removing dependent transactions.`
);
}
}