Rehabiilitate import scripts to handle sempo exports after changes
This commit is contained in:
parent
3431991565
commit
8449ff8b58
@ -142,7 +142,7 @@ class Handler:
|
||||
except FileNotFoundError:
|
||||
logg.error('no import record of address {}'.format(recipient))
|
||||
return
|
||||
u = Person(o)
|
||||
u = Person.deserialize(o)
|
||||
original_address = u.identities['evm'][old_chain_spec_str][0]
|
||||
balance = self.balances[original_address]
|
||||
logg.info('registered {} originally {} ({}) tx hash {} balance {}'.format(recipient, original_address, u, tx.hash, balance))
|
||||
|
@ -129,9 +129,11 @@ if __name__ == '__main__':
|
||||
logg.error('load error for {}: {}'.format(y, e))
|
||||
continue
|
||||
f.close()
|
||||
u = Person(o)
|
||||
u = Person.deserialize(o)
|
||||
|
||||
new_address = register_eth(i, u)
|
||||
if u.identities.get('evm') == None:
|
||||
u.identities['evm'] = {}
|
||||
u.identities['evm'][chain_str] = [new_address]
|
||||
|
||||
register_ussd(u)
|
||||
|
@ -268,7 +268,9 @@ def main():
|
||||
logg.error('load error for {}: {}'.format(y, e))
|
||||
continue
|
||||
f.close()
|
||||
u = Person(o)
|
||||
|
||||
u = Person.deserialize(o)
|
||||
logg.debug('data {}'.format(u.identities['evm']))
|
||||
|
||||
new_address = u.identities['evm'][chain_str][0]
|
||||
old_address = u.identities['evm'][old_chain_str][0]
|
||||
|
Loading…
Reference in New Issue
Block a user