Bug fix.
This commit is contained in:
parent
d55f73af94
commit
e07ed88c72
@ -142,7 +142,7 @@ if __name__ == '__main__':
|
|||||||
new_address = register_eth(i, u)
|
new_address = register_eth(i, u)
|
||||||
if u.identities.get('evm') == None:
|
if u.identities.get('evm') == None:
|
||||||
u.identities['evm'] = {}
|
u.identities['evm'] = {}
|
||||||
subchain_str = '{}:{}'.format(chain_spec.common_name(), chain_spec.network_id())
|
sub_chain_str = '{}:{}'.format(chain_spec.common_name(), chain_spec.network_id())
|
||||||
u.identities['evm'][sub_chain_str] = [new_address]
|
u.identities['evm'][sub_chain_str] = [new_address]
|
||||||
|
|
||||||
register_ussd(u)
|
register_ussd(u)
|
||||||
|
@ -254,7 +254,6 @@ def main():
|
|||||||
|
|
||||||
balances = {}
|
balances = {}
|
||||||
f = open('{}/balances.csv'.format(user_dir, 'r'))
|
f = open('{}/balances.csv'.format(user_dir, 'r'))
|
||||||
remove_zeros = 10**12
|
|
||||||
i = 0
|
i = 0
|
||||||
while True:
|
while True:
|
||||||
l = f.readline()
|
l = f.readline()
|
||||||
@ -266,7 +265,7 @@ def main():
|
|||||||
sys.stdout.write('loading balance {} {}'.format(i, address).ljust(200) + "\r")
|
sys.stdout.write('loading balance {} {}'.format(i, address).ljust(200) + "\r")
|
||||||
except ValueError:
|
except ValueError:
|
||||||
break
|
break
|
||||||
balance = int(int(r[1].rstrip()) / remove_zeros)
|
balance = int(r[1].rstrip())
|
||||||
balances[address] = balance
|
balances[address] = balance
|
||||||
i += 1
|
i += 1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user