This commit is contained in:
Spencer Ofwiti 2021-02-22 16:48:50 +03:00
parent d55f73af94
commit e07ed88c72
3 changed files with 2 additions and 3 deletions

View File

@ -142,7 +142,7 @@ if __name__ == '__main__':
new_address = register_eth(i, u)
if u.identities.get('evm') == None:
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]
register_ussd(u)

View File

@ -254,7 +254,6 @@ def main():
balances = {}
f = open('{}/balances.csv'.format(user_dir, 'r'))
remove_zeros = 10**12
i = 0
while True:
l = f.readline()
@ -266,7 +265,7 @@ def main():
sys.stdout.write('loading balance {} {}'.format(i, address).ljust(200) + "\r")
except ValueError:
break
balance = int(int(r[1].rstrip()) / remove_zeros)
balance = int(r[1].rstrip())
balances[address] = balance
i += 1