[Bug] Overly using serde(flatten) causes bitcode
and bincode
errors
#1931
Labels
bug
Something isn't working
bitcode
and bincode
errors
#1931
Component
serde
What version of Alloy are you on?
├── alloy-primitives v0.8.15 () ├── alloy-consensus v0.8.3 () ├── alloy-network v0.8.3 () ├── alloy-primitives v0.8.15 () ├── alloy-provider v0.8.3 () ├── alloy-rpc-types v0.8.3 () ├── alloy-signer-local v0.8.3 () ├── alloy-transport-http v0.8.3 ()
Operating System
Linux
Describe the bug
Overly using the
serde(flatten)
attribute on different fields causesbitcode
andbincode
(tested with those) to panic withSequence must have length
. One clear example isSigned
inalloy-consensus
. Each of the fields is serializable, and if I create aSigned
withoutserde(flatten)
on the fields everything is fine.Any reason to use
serde(flatten)
everywhere? If not, I can create a PR removing some.Cheers
The text was updated successfully, but these errors were encountered: