mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-08 20:11:21 +00:00
12 lines
291 B
Go
12 lines
291 B
Go
|
package hexutility
|
||
|
|
||
|
var (
|
||
|
ErrMissingPrefix = &decError{"hex string without 0x prefix"}
|
||
|
ErrOddLength = &decError{"hex string of odd length"}
|
||
|
ErrSyntax = &decError{"invalid hex string"}
|
||
|
)
|
||
|
|
||
|
type decError struct{ msg string }
|
||
|
|
||
|
func (err decError) Error() string { return err.msg }
|