You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package common
|
|
|
|
import "strconv"
|
|
|
|
func ParseStringHexAddress(hexAddress string) (res uint64, err error) {
|
|
parsedValue, err := strconv.ParseUint(hexAddress[2:], 16, 32)
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
return parsedValue, nil
|
|
}
|