diff options
-rw-r--r-- | cmd/rlpdump/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/rlpdump/main.go b/cmd/rlpdump/main.go index 7d328e59b..d0f993c5b 100644 --- a/cmd/rlpdump/main.go +++ b/cmd/rlpdump/main.go @@ -51,7 +51,7 @@ func main() { var r io.Reader switch { case *hexMode != "": - data, err := hex.DecodeString(*hexMode) + data, err := hex.DecodeString(strings.TrimPrefix(*hexMode, "0x")) if err != nil { die(err) } |