Skip to content

Commit

Permalink
Removed the conversion to lower-case Ethereum addresses.
Browse files Browse the repository at this point in the history
  • Loading branch information
THLO committed Jan 14, 2025
1 parent f99099a commit ba87833
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions rs/cross-chain/scripts/generate_blocklist.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ def store_blocklist(currency, addresses, filename):
address_suffix = ')'
offset = 2
for address in addresses:
# Ethereum addresses are case-insensitive. By contrast, only Bech32 Bitcoin addresses are case-insensitive.
if currency == 'ETH':
address = address.lower()
if address in INVALID_ADDRESSES:
blocklist_file.write(' // ' + address_prefix + '"' + address[offset:] + '"' + address_suffix + ' (Invalid address prefix)\n')
print('Invalid address:', address)
Expand Down

0 comments on commit ba87833

Please sign in to comment.