cmd/rlpdump: allow hex input to have leading '0x'

pull/15389/head
Jim McDonald 7 years ago
parent 0095531a58
commit 3e6d7c169b
  1. 2
      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)
}

Loading…
Cancel
Save