Merge pull request #15389 from mcdee/rlpdump

cmd/rlpdump: allow hex input to have leading '0x'
pull/15391/head
Péter Szilágyi 7 years ago committed by GitHub
commit 6dafec0666
  1. 2
      cmd/rlpdump/main.go

@ -51,7 +51,7 @@ func main() {
var r io.Reader var r io.Reader
switch { switch {
case *hexMode != "": case *hexMode != "":
data, err := hex.DecodeString(*hexMode) data, err := hex.DecodeString(strings.TrimPrefix(*hexMode, "0x"))
if err != nil { if err != nil {
die(err) die(err)
} }

Loading…
Cancel
Save