Remove premature commit from nonce bump, avoid empty payload crash

This commit is contained in:
nolash
2021-03-03 12:50:23 +01:00
parent 5b3e72b0b7
commit 951ba52de4
5 changed files with 11 additions and 80 deletions

View File

@@ -148,7 +148,11 @@ class Handler:
return
u = Person.deserialize(o)
original_address = u.identities[old_chain_spec.engine()]['{}:{}'.format(old_chain_spec.common_name(), old_chain_spec.network_id())][0]
balance = self.balances[original_address]
try:
balance = self.balances[original_address]
except KeyError as e:
logg.error('balance get fail orig {} new {}'.format(original_address, recipient))
return
# TODO: store token object in handler ,get decimals from there
multiplier = 10**6