Skip to content

Commit

Permalink
execution spec test workaround
Browse files Browse the repository at this point in the history
Signed-off-by: Ignacio Hagopian <[email protected]>
  • Loading branch information
jsign committed Oct 21, 2024
1 parent bc7fa64 commit af83a42
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions proof_json.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ func PrefixedHexStringToBytes(input string) ([]byte, error) {
if input[0:2] == "0x" {
input = input[2:]
}
// TODO(jsign): workaround for execution-spec-tests bug. Remove as soon as it's fixed.
if len(input)%2 != 0 {
input = "0" + input
}
return hex.DecodeString(input)
}

Expand Down

0 comments on commit af83a42

Please sign in to comment.