Skip to content

Commit

Permalink
fix validate
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Jan 19, 2024
1 parent 9e4a8c4 commit 4083fdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/utility/validate_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ def readSLIP173():
slipCoinTypesByNum = {}
slipCoinTypesByName = {}
slip44Websites = {}

| 0 |
def readSLIP44():
slip44URL = "https://raw.githubusercontent.com/satoshilabs/slips/master/slip-0044.md"
lines = []
for line in urllib.request.urlopen(slip44URL):
line = line.decode('utf-8')
if(len(line) > 6):
if(line[0] != "-" and line[0] != "C" and (line[5] == "|" or line[6] == "|" or line[7] == "|" or line[8] == "|" or line[9] == "|" or line[10] == "|" or line[11] == "|")):
if(line[0] != "-" and line[0] != "C" and (line[5] == "|" or line[6] == "|" or line[7] == "|" or line[8] == "|" or line[9] == "|" or line[10] == "|" or line[11] == "|" or line[12] == "|" or line[13] == "|")):
lines.append(line)
if lines:
for line in lines:
Expand Down

0 comments on commit 4083fdb

Please sign in to comment.