Skip to content

Commit

Permalink
Update Wallet.py
Browse files Browse the repository at this point in the history
  • Loading branch information
revoxhere authored Mar 27, 2021
1 parent 1091f4d commit 2030578
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ def _login_btn_clicked(self):
+ ","
+ str(password),
encoding="utf8"))
response = soc.recv(64).decode("utf8")
response = soc.recv(64).decode("utf8").rstrip("\n")
response = response.split(",")

if response[0] == "OK":
Expand Down Expand Up @@ -415,7 +415,7 @@ def _registerprotocol(self):
+ ","
+ str(emailS),
encoding="utf8"))
response = soc.recv(128).decode("utf8")
response = soc.recv(128).decode("utf8").rstrip("\n")
response = response.split(",")

if response[0] == "OK":
Expand Down Expand Up @@ -1690,7 +1690,7 @@ def _changepassprotocol():
+ ","
+ str(newpasswordS),
encoding="utf8"))
response = soc.recv(128).decode("utf8").split(",")
response = soc.recv(128).decode("utf8").rstrip("\n").split(",")
soc.close()

if not "OK" in response[0]:
Expand Down Expand Up @@ -2049,7 +2049,7 @@ def getBalance():
"BALA",
encoding="utf8"))
oldbalance = balance
balance = soc.recv(1024).decode()
balance = soc.recv(1024).decode().rstrip("\n")
try:
balance = float(balance)
globalBalance = round(float(balance), 8)
Expand Down Expand Up @@ -2228,7 +2228,7 @@ def sendFunds(handler):
+ ","
+ str(amountStr),
encoding="utf8"))
response = soc.recv(128).decode().split(",")
response = soc.recv(128).decode().rstrip("\n").split(",")
soc.close()

if "OK" in str(response[0]):
Expand Down

0 comments on commit 2030578

Please sign in to comment.