mirror of
https://github.com/luxfi/coreth.git
synced 2026-10-30 17:00:51 +00:00
14 lines
359 B
Go
14 lines
359 B
Go
// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package client
|
|
|
|
import "github.com/luxfi/geth/common"
|
|
|
|
func ParseEthAddress(addrStr string) (common.Address, error) {
|
|
if !common.IsHexAddress(addrStr) {
|
|
return common.Address{}, errInvalidAddr
|
|
}
|
|
return common.HexToAddress(addrStr), nil
|
|
}
|