fix claim update

dict.update does not return the dict, so this can’t be lambda’d
This commit is contained in:
Jack Robison 2017-02-09 10:11:46 -05:00
parent 75cc0dcce9
commit 19fe101d73

View file

@ -642,6 +642,10 @@ class Wallet(object):
d.addCallback(lambda _: claim_out)
return d
def _add_claim_id(claim_out, claim):
claim_out.update({'claim_id': claim['claim_id']})
return claim_out
def _claim_or_update(claim, metadata, _bid):
if not claim:
log.debug("No own claim yet, making a new one")
@ -658,7 +662,7 @@ class Wallet(object):
lambda new_metadata: self._send_name_claim_update(name, claim['claim_id'],
claim_outpoint,
new_metadata, _bid))
d.addCallback(lambda claim_out: claim_out.update({'claim_id': claim['claim_id']}))
d.addCallback(_add_claim_id, claim)
return d
meta = Metadata(m)