Skip to content

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

Merged
karalabe merged 1 commit into
ethereum:masterfrom
mcdee:rlpdump
Oct 27, 2017
Merged

cmd/rlpdump: allow hex input to have leading '0x'#15389
karalabe merged 1 commit into
ethereum:masterfrom
mcdee:rlpdump

Conversation

@mcdee
Copy link
Copy Markdown
Contributor

@mcdee mcdee commented Oct 27, 2017

rlpdump fails with a hex input prefixed with 0x, for example:

$ rlpdump --hex 0x00
encoding/hex: invalid byte: U+0078 'x'

This patch allows hex strings to be prefixed with '0x':

$ rlpdump --hex 0x00
00

Existing functionality is unchanged.

@karalabe karalabe added this to the 1.7.3 milestone Oct 27, 2017
@karalabe karalabe merged commit 6dafec0 into ethereum:master Oct 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants