[Feature] Implement Encodable
and Decodable
for OpTxType
#243
Labels
A-consensus
Area: consensus crate
Encodable
and Decodable
for OpTxType
#243
Component
consensus
Describe the feature you would like
Right now,
OpTxType
does not derive these.And
RlpEncodable
andRlpDecodable
cannot be used onenum
s.Might be useful and easier for other projects that are using these. For example: paradigmxyz/reth#12443
Additional context
I can volunteer to take on this issue, however a bit of guidance and context would be appreciated.
Why
RlpEncodable
andRlpDecodable
designed in a way that they only supportstructs
but notenums
?Does it make sense to extend the supported set for these macros so that they can support enums? Or should we implement the
Encodable
andDecodable
traits manually?The text was updated successfully, but these errors were encountered: