Skip to content

Commit f6ae4af

Browse files
author
Mr. Angry
committed
Change SDK deploy Txid to hash
Modify the transaction id for a deployment transaction to the chaincode hash. The Txid was being incorrectly set to a generated UUID. Fixes FAB-288 Change-Id: I69736e05e2240b79ae3bb5bf378abf519ebbf993 Signed-off-by: Anna D Derbakova <[email protected]>
1 parent cc111e2 commit f6ae4af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/node/src/hfc.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1757,10 +1757,10 @@ export class TransactionContext extends events.EventEmitter {
17571757
tx.setPayload(chaincodeDeploymentSpec.toBuffer());
17581758

17591759
//
1760-
// Set the transaction UUID
1760+
// Set the transaction ID
17611761
//
17621762

1763-
tx.setTxid(sdk_util.GenerateUUID());
1763+
tx.setTxid(hash);
17641764

17651765
//
17661766
// Set the transaction timestamp

0 commit comments

Comments
 (0)