mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
cmd/rlpdump: allow hex input to have leading '0x'
This commit is contained in:
parent
0095531a58
commit
3e6d7c169b
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue