forked from LBRYCommunity/lbry-sdk
when using --resolve with local claim list commands, update resolved result with local metadata (such as is_mine and is_mine)
This commit is contained in:
parent
34cbb6fa79
commit
a02b251c9b
2 changed files with 4 additions and 0 deletions
|
@ -739,6 +739,7 @@ class Ledger(metaclass=LedgerRegistry):
|
|||
for txo in txos:
|
||||
resolved = response[txo.permanent_url]
|
||||
if isinstance(resolved, Output):
|
||||
resolved.update_annotations(txo)
|
||||
results.append(resolved)
|
||||
else:
|
||||
if isinstance(resolved, dict) and 'error' in resolved:
|
||||
|
|
|
@ -488,6 +488,9 @@ class ClaimCommands(ClaimTestCase):
|
|||
self.assertTrue(r[0]['meta']['is_controlling'])
|
||||
self.assertTrue(r[1]['meta']['is_controlling'])
|
||||
|
||||
# check that metadata is transfered
|
||||
self.assertTrue(r[0]['is_mine'])
|
||||
|
||||
|
||||
class ChannelCommands(CommandTestCase):
|
||||
|
||||
|
|
Loading…
Reference in a new issue