Merge pull request #15389 from mcdee/rlpdump

cmd/rlpdump: allow hex input to have leading '0x'
This commit is contained in:
Péter Szilágyi 2017-10-27 13:11:22 +03:00 committed by GitHub
commit 6dafec0666
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}