Skip to content

Commit

Permalink
cmd/rlpdump: allow hex input to have leading '0x'
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdee committed Oct 27, 2017
1 parent 0095531 commit 3e6d7c1
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 3e6d7c1

Please sign in to comment.