This commit is contained in:
Alex Grintsvayg 2018-04-19 13:47:24 -04:00
parent 1c793931ed
commit c3e047a2aa

View file

@ -414,11 +414,10 @@ class Wallet(object):
def save_claim(self, claim_info):
if 'value' in claim_info:
yield self.storage.save_claim(claim_info)
else:
if 'certificate' in claim_info:
yield self.storage.save_claim(claim_info['certificate'])
if 'claim' in claim_info:
yield self.storage.save_claim(claim_info['claim'])
elif 'certificate' in claim_info:
yield self.storage.save_claim(claim_info['certificate'])
elif 'claim' in claim_info:
yield self.storage.save_claim(claim_info['claim'])
@defer.inlineCallbacks
def resolve(self, *uris, **kwargs):