diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-10-27 18:11:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-27 18:11:22 +0800 |
commit | 6dafec06662bbfbf4d36497ff7165fc3c9129e2f (patch) | |
tree | 29bda46510e205861b284cfa4b80b460c42e7ffe | |
parent | 0095531a58772b1f5bd1547169790dbde84ec78a (diff) | |
parent | 3e6d7c169b23b3aa95fe0e2f1cbfb3501015af57 (diff) | |
download | dexon-6dafec06662bbfbf4d36497ff7165fc3c9129e2f.tar.gz dexon-6dafec06662bbfbf4d36497ff7165fc3c9129e2f.tar.zst dexon-6dafec06662bbfbf4d36497ff7165fc3c9129e2f.zip |
Merge pull request #15389 from mcdee/rlpdump
cmd/rlpdump: allow hex input to have leading '0x'
-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) } |