Skip to content

Commit

Permalink
Merge pull request #1265 from pataegrillo/lock_description_fix
Browse files Browse the repository at this point in the history
Fixed can't change description using lock flag
  • Loading branch information
jdogresorg authored Nov 1, 2023
2 parents c7b8995 + 7ec5187 commit 7eb7ce8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion counterpartylib/lib/messages/issuance.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ def parse (db, tx, message, message_type_id):
WHERE (status = ? AND asset = ?)
ORDER BY tx_index ASC''', ('valid', asset)))
cursor.close()
if len(issuances) > 0:
if description.lower() == 'lock' and len(issuances) > 0:
description = issuances[-1]['description'] # Use last description

if not reissuance:
Expand Down

0 comments on commit 7eb7ce8

Please sign in to comment.