Skip to content

Commit b06f329

Browse files
Merge pull request #1520 from input-output-hk/fix/lw-11780-fix-tx-id-computation
fix(cardano-services-client): txSubmitApiProvider now computes the tx id correctly
2 parents 6e0bb42 + 09b6b69 commit b06f329

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cardano-services-client/src/TxSubmitProvider/TxSubmitApiProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class TxSubmitApiProvider implements TxSubmitProvider {
4242
let txId: Cardano.TransactionId | undefined;
4343

4444
try {
45-
txId = Serialization.TransactionBody.fromCbor(signedTransaction).hash();
45+
txId = Serialization.Transaction.fromCbor(signedTransaction).getId();
4646

4747
this.#logger.debug(`Submitting tx ${txId} ...`);
4848

0 commit comments

Comments
 (0)