From 1ed3fd314026cac620c1ee7f7392a2a4a07a7484 Mon Sep 17 00:00:00 2001 From: Alvarez <140459501+prestoalvarez@users.noreply.github.com> Date: Fri, 31 Oct 2025 13:21:17 +0100 Subject: [PATCH] Update types.go --- common/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/types.go b/common/types.go index db4de8bcbd..2d1442cd80 100644 --- a/common/types.go +++ b/common/types.go @@ -231,7 +231,7 @@ func HexToAddress(s string) Address { return BytesToAddress(FromHex(s)) } // IsHexAddress verifies whether a string can represent a valid hex-encoded // Ethereum address or not. func IsHexAddress(s string) bool { - if has0xPrefix(s) { + if hexutil.Has0xPrefix(s) { s = s[2:] } return len(s) == 2*AddressLength && isHex(s)