Skip to content

Commit 179dd9f

Browse files
committed
Fixing bugs
1 parent 80795cc commit 179dd9f

File tree

3 files changed

+29
-12
lines changed

3 files changed

+29
-12
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,21 @@ TheLootBoxWallet is a Ethereum wallet that runs locally on your desktop with a f
1616

1717
---
1818

19+
### Install from .deb file release
20+
21+
22+
Download the deb file from the latest release.
23+
24+
https://github.com/TheLootBox-xyz/TheLootBoxWallet/releases
25+
26+
Run the install command.
27+
28+
`sudo dpkg -i thelootboxwallet-release`
29+
30+
Start thelootboxwallet from `usr/bin/thelootboxwallet`.
31+
32+
`/usr/bin/thelootboxwallet/start`
33+
1934
### Start from binary (In progress)
2035

2136
#### Linux dependencies

app/blueprints.py

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -255,11 +255,12 @@ def send():
255255
unlock_account_form = UnlockAccountForm()
256256
create_account_form = CreateAccountForm()
257257
send_ether_form = SendEtherForm()
258+
form_create_multiple = CreateMultipleAccountsForm()
258259
if request.method == 'GET':
259260
if not unlocked:
260261
if not os.path.exists("accounts.json"):
261262
flash("No accounts exist, please create an account.", 'warning')
262-
return render_template('create.html', account="new", create_account_form=create_account_form)
263+
return render_template('create.html', account="new", create_account_form=create_account_form, form_create_multiple=form_create_multiple)
263264
else:
264265
return render_template('unlock.html', account="current", unlock_account_form=unlock_account_form, year=year)
265266
if os.path.exists("accounts.json"):
@@ -333,11 +334,17 @@ def createlootbundle():
333334
global unlocked
334335
if request.method == 'GET':
335336
if not unlocked:
336-
with open('accounts.json', 'r') as accounts_from_file:
337-
account_data_json = json.load(accounts_from_file)
338-
pub_address = account_data_json[int(0)]['public_address']
339-
private_key = account_data_json[int(0)]['private_key']
340-
mnemonic_phrase = account_data_json[int(0)]['mnemonic_phrase']
337+
try:
338+
with open('accounts.json', 'r') as accounts_from_file:
339+
account_data_json = json.load(accounts_from_file)
340+
pub_address = account_data_json[int(0)]['public_address']
341+
private_key = account_data_json[int(0)]['private_key']
342+
mnemonic_phrase = account_data_json[int(0)]['mnemonic_phrase']
343+
except Exception:
344+
create_account_form=CreateAccountForm()
345+
form_create_multiple=CreateMultipleAccountsForm()
346+
return render_template('create.html', account="new", create_account_form=create_account_form,
347+
form_create_multiple=form_create_multiple)
341348
return render_template('unlock.html', account="current", pub_address=pub_address,
342349
private_key=private_key, mnemonic_phrase=mnemonic_phrase, unlock_account_form=unlock_account_form, year=year)
343350
if unlocked:

requirements.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,8 @@ proxy-tools==0.1.0
4141
pycparser==2.21
4242
pycryptodome==3.14.1
4343
pyparsing==3.0.8
44-
PyQt5==5.15.6
45-
PyQt5-Qt5==5.15.2
46-
PyQt5-sip==12.10.1
47-
PyQtWebEngine==5.15.5
48-
PyQtWebEngine-Qt5==5.15.2
4944
pyrsistent==0.18.1
50-
pywebview[qt]==3.6.3
45+
pywebview==3.6.3
5146
vext.gi
5247
QtPy==2.1.0
5348
requests==2.27.1

0 commit comments

Comments
 (0)