|
|
|
@ -31,7 +31,7 @@ def register(update, context):
|
|
|
|
|
return False
|
|
|
|
|
else:
|
|
|
|
|
try:
|
|
|
|
|
account_index = wallet.new_account(label=un)
|
|
|
|
|
account = wallet.new_account(label=un)
|
|
|
|
|
except Exception as e:
|
|
|
|
|
logging.error(f'Unable to create a new account in wallet RPC: {e}. Debug: {msg}')
|
|
|
|
|
msg.reply_text('Unable to create a new account for you. Ask for help.')
|
|
|
|
@ -40,7 +40,8 @@ def register(update, context):
|
|
|
|
|
u = User(
|
|
|
|
|
telegram_id=uid,
|
|
|
|
|
telegram_user=un,
|
|
|
|
|
account_index=account_index,
|
|
|
|
|
account_index=account[0],
|
|
|
|
|
address=account[1]
|
|
|
|
|
)
|
|
|
|
|
u.save()
|
|
|
|
|
reply_text = [
|
|
|
|
|