Closed mcdee closed 7 months ago
Hi @mcdee. Thank you for reporting the issue, I will take a look. There was a similar situation with placeholders before and it was easy to solve.
Any luck with hunting this one down?
Nope, I give it a try every few weeks but I am not having luck, this was part of some rewrite to support nested bytes (i.e. [][]byte
) that I did not write so I am having some hard time fixing it.
If I create a simple type:
sszgen
generates code that handles the two separate maximums fine:It can be seen that the two sizes (1024 and 256) are used correctly. However, if I add an intermediate type in to the object:
sszgen
generates this:Here it can be seen that in the first piece of code 256 is being used where it should still be 1024.