Skip to content

Commit

Permalink
Merge pull request #15389 from mcdee/rlpdump
Browse files Browse the repository at this point in the history
cmd/rlpdump: allow hex input to have leading '0x'
  • Loading branch information
karalabe authored Oct 27, 2017
2 parents 0095531 + 3e6d7c1 commit 6dafec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/rlpdump/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 6dafec0

Please sign in to comment.