This commit is contained in:
Hteev Oli 2024-10-29 16:53:37 +08:00 committed by GitHub
parent a1d30dc66c
commit cdb4b87ce6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -137,7 +137,7 @@ func (c *Container) MarshalBinary() []byte {
// Write section contents.
for _, ty := range c.types {
b = append(b, ty.inputs, ty.outputs, byte(ty.maxStackHeight >> 8), byte(ty.maxStackHeight & 0x00ff))
b = append(b, ty.inputs, ty.outputs, byte(ty.maxStackHeight>>8), byte(ty.maxStackHeight&0x00ff))
}
b = slices.Concat(b, slices.Concat(c.codeSections...), slices.Concat(encodedContainer...))
b = append(b, c.data...)