-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sszgen: max size shadowed by first occurence of custom type def #75
Comments
sszgen
shadows max size of type defs
It's also making a
|
Which commit of |
@ferranbt I'm using the edit: compiled from |
Fixed in #76. There are two things here:
|
Great - thank you @ferranbt. Will import "github.com/ethereum/go-ethereum/common/hexutil"
type A struct {
Foo hexutil.Bytes `ssz-max:"2048"`
}
type B struct {
Bar hexutil.Bytes `ssz-max:"32"`
} and
|
Ok, now this is a different thing hahah. I was wondering if that |
Yes I will |
If you run
sszgen
on these structs, bothA
andB
will use2048
as the max size for the byte list. In the case ofB
, this causes an incorrect hash-tree-root to be calculated, because the mix in should be based on32
, not `2048.The text was updated successfully, but these errors were encountered: