From 09b6b6950f1dbb42545088733a303fe01ceec93c Mon Sep 17 00:00:00 2001 From: Angel Castillo Date: Thu, 31 Oct 2024 19:36:39 +0800 Subject: [PATCH] fix(cardano-services-client): txSubmitApiProvider now computes the tx id correctly --- .../src/TxSubmitProvider/TxSubmitApiProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cardano-services-client/src/TxSubmitProvider/TxSubmitApiProvider.ts b/packages/cardano-services-client/src/TxSubmitProvider/TxSubmitApiProvider.ts index 0c4c90227b2..4e5db75acf3 100644 --- a/packages/cardano-services-client/src/TxSubmitProvider/TxSubmitApiProvider.ts +++ b/packages/cardano-services-client/src/TxSubmitProvider/TxSubmitApiProvider.ts @@ -42,7 +42,7 @@ export class TxSubmitApiProvider implements TxSubmitProvider { let txId: Cardano.TransactionId | undefined; try { - txId = Serialization.TransactionBody.fromCbor(signedTransaction).hash(); + txId = Serialization.Transaction.fromCbor(signedTransaction).getId(); this.#logger.debug(`Submitting tx ${txId} ...`);