Commit 6dafec06 authored by Péter Szilágyi's avatar Péter Szilágyi Committed by GitHub

Merge pull request #15389 from mcdee/rlpdump

cmd/rlpdump: allow hex input to have leading '0x'
parents 0095531a 3e6d7c16
......@@ -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)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment