forked from LBRYCommunity/lbry-sdk
fix _send_name_claim json
This commit is contained in:
parent
cadd1f993d
commit
56e2d77039
1 changed files with 2 additions and 2 deletions
|
@ -431,10 +431,10 @@ class LBRYWallet(object):
|
|||
def _claim_or_update(claim, metadata, _bid):
|
||||
if not claim:
|
||||
log.info("No claim yet, making a new one")
|
||||
return self._send_name_claim(name, metadata.as_json(), _bid)
|
||||
return self._send_name_claim(name, json.dumps(metadata), _bid)
|
||||
if not claim['is_mine']:
|
||||
log.info("Making a contesting claim")
|
||||
return self._send_name_claim(name, metadata.as_json(), _bid)
|
||||
return self._send_name_claim(name, json.dump(metadata), _bid)
|
||||
else:
|
||||
log.info("Updating over own claim")
|
||||
d = self.update_metadata(metadata, claim['value'])
|
||||
|
|
Loading…
Reference in a new issue