Skip to content

Commit

Permalink
Merge pull request #114 from newrlfoundation/db_lock-is_Wallet-valid
Browse files Browse the repository at this point in the history
fixed is wallet valid cur
  • Loading branch information
kousthubraja authored Dec 12, 2022
2 parents 266aa1b + df97e61 commit fa858bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/codes/transactionmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def econvalidator(self, cur=None):
else:
self.validity = 0 # other custodian cannot sign someone's linked wallet address
else: # this is a new wallet and person
if is_wallet_valid(walletaddress) and not is_smart_contract(walletaddress, cur=cur):
if is_wallet_valid(walletaddress, cur=cur) and not is_smart_contract(walletaddress, cur=cur):
print("Wallet with address",
walletaddress, " already exists.")
self.validity = 0
Expand All @@ -278,7 +278,7 @@ def econvalidator(self, cur=None):
fovalidity = False
custvalidity = False
if firstowner:
if is_wallet_valid(firstowner):
if is_wallet_valid(firstowner, cur=cur):
# print("Valid first owner")
fovalidity = True
else:
Expand All @@ -290,7 +290,7 @@ def econvalidator(self, cur=None):
fovalidity = False # amount cannot be non-zero if no first owner
else:
fovalidity = True
if is_wallet_valid(custodian):
if is_wallet_valid(custodian, cur=cur):
# print("Valid custodian")
custvalidity = True
if not fovalidity:
Expand Down

0 comments on commit fa858bf

Please sign in to comment.