Skip to content

Commit 6473a54

Browse files
author
Paul Robinson
authored
add non-ens normalize_address func (#2384)
1 parent 81427e6 commit 6473a54

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

web3/_utils/normalizers.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,12 @@ def normalize_address(ens: ENS, address: ChecksumAddress) -> ChecksumAddress:
253253
return address
254254

255255

256+
def normalize_address_no_ens(address: ChecksumAddress) -> ChecksumAddress:
257+
if address:
258+
validate_address(address)
259+
return address
260+
261+
256262
def normalize_bytecode(bytecode: bytes) -> HexBytes:
257263
if bytecode:
258264
bytecode = HexBytes(bytecode)

0 commit comments

Comments
 (0)