forked from ferranbt/fastssz
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(generator): Unmarshaling of fixed sized custom types is generated…
… incorrectly. (ferranbt#152) * fix * update control flow * bug fix * add test case --------- Co-authored-by: ocnc <anocpublic@gmail.com>
- Loading branch information
1 parent
3fad963
commit b8fd7b4
Showing
4 changed files
with
156 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package testcases | ||
|
||
// Data152 is a byte array with 48 elements | ||
// | ||
//go:generate go run ../main.go --path pr_152.go | ||
type Data152 [48]byte | ||
|
||
// PR1512 is a struct with a Data152 field | ||
type PR1512 struct { | ||
D []Data152 `ssz-max:"32"` | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.