Update Auctions page to include more info and be easier to read #1

Merged
nathanwoodburn merged 7 commits from dev into main 2025-07-12 15:10:58 +10:00
Showing only changes of commit 63e0b1c2f2 - Show all commits

View File

@@ -449,13 +449,15 @@ def isOwnDomain(account, name: str):
domain_info = getDomain(name)
owner = getAddressFromCoin(domain_info['info']['owner']['hash'],domain_info['info']['owner']['index'])
# Select the account
print(hsw.rpc_selectWallet(account))
print(hsw.rpc_getAccount(owner))
hsw.rpc_selectWallet(account)
account = hsw.rpc_getAccount(owner)
domains = getDomains(account)
for domain in domains:
if domain['name'] == name:
return True
if 'error' in account and account['error'] is not None:
return False
if 'result' not in account:
return False
if account['result'] == 'default':
return True
return False