diff options
author | Jim McDonald <Jim@mcdee.net> | 2017-10-27 16:40:52 +0800 |
---|---|---|
committer | Jim McDonald <Jim@mcdee.net> | 2017-10-27 16:40:52 +0800 |
commit | 3e6d7c169b23b3aa95fe0e2f1cbfb3501015af57 (patch) | |
tree | 29bda46510e205861b284cfa4b80b460c42e7ffe /cmd/rlpdump/main.go | |
parent | 0095531a58772b1f5bd1547169790dbde84ec78a (diff) | |
download | go-tangerine-3e6d7c169b23b3aa95fe0e2f1cbfb3501015af57.tar go-tangerine-3e6d7c169b23b3aa95fe0e2f1cbfb3501015af57.tar.gz go-tangerine-3e6d7c169b23b3aa95fe0e2f1cbfb3501015af57.tar.bz2 go-tangerine-3e6d7c169b23b3aa95fe0e2f1cbfb3501015af57.tar.lz go-tangerine-3e6d7c169b23b3aa95fe0e2f1cbfb3501015af57.tar.xz go-tangerine-3e6d7c169b23b3aa95fe0e2f1cbfb3501015af57.tar.zst go-tangerine-3e6d7c169b23b3aa95fe0e2f1cbfb3501015af57.zip |
cmd/rlpdump: allow hex input to have leading '0x'
Diffstat (limited to 'cmd/rlpdump/main.go')
-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) } |