Skip to content

Commit 067a147

Browse files
author
Paul Robinson
committed
add non-ens normalize_address func (ethereum#2384)
1 parent 2cd75fd commit 067a147

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
@@ -252,6 +252,12 @@ def normalize_address(ens: ENS, address: ChecksumAddress) -> ChecksumAddress:
252252
return address
253253

254254

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

0 commit comments

Comments
 (0)