Skip to content
This repository was archived by the owner on Sep 6, 2024. It is now read-only.

Commit 53b3f4e

Browse files
committed
bundle: fix tag usage
1 parent c1157ac commit 53b3f4e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/crypto/bundle/bundle.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Bundle.prototype.addEntry = function(signatureMessageLength, address, value, tag
2626
transactionObject.address = address;
2727
transactionObject.value = i == 0 ? value : 0;
2828
transactionObject.obsoleteTag = tag;
29+
transactionObject.tag = tag;
2930
transactionObject.timestamp = timestamp;
3031

3132
this.bundle[this.bundle.length] = transactionObject;
@@ -58,9 +59,6 @@ Bundle.prototype.addTrytes = function(signatureFragments) {
5859
// Fill empty branchTransaction
5960
this.bundle[i].branchTransaction = emptyHash;
6061

61-
// Fill empty tag
62-
this.bundle[i].tag = emptyTag;
63-
6462
this.bundle[i].attachmentTimestamp = emptyTimestamp;
6563
this.bundle[i].attachmentTimestampLowerBound = emptyTimestamp;
6664
this.bundle[i].attachmentTimestampUpperBound = emptyTimestamp;

0 commit comments

Comments
 (0)