mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-05 18:42:19 +00:00
14 lines
158 B
Go
14 lines
158 B
Go
|
package hex
|
||
|
|
||
|
import (
|
||
|
"encoding/hex"
|
||
|
)
|
||
|
|
||
|
func MustDecodeString(s string) []byte {
|
||
|
r, err := hex.DecodeString(s)
|
||
|
if err != nil {
|
||
|
panic(err)
|
||
|
}
|
||
|
return r
|
||
|
}
|