Skip to content

Commit 5f43f19

Browse files
authored
Fix domain ownership check (erc20 addr checksum format to lowercase) (#241)
1 parent 681291d commit 5f43f19

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/aleph/sdk/domain.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,10 @@ async def check_domain(
207207
if entries:
208208
if record_type == "txt":
209209
for entry in entries:
210-
if hasattr(entry, "text") and entry.text == record_value:
210+
if (
211+
hasattr(entry, "text")
212+
and str(entry.text).lower() == str(record_value).lower()
213+
):
211214
status[dns_rule.name] = True
212215
break
213216
elif (

0 commit comments

Comments
 (0)