good morning!!!!

Skip to content
Snippets Groups Projects
Forked from github / maticnetwork / bor
Loading
  • Felix Lange's avatar
    8deec2e4
    rlp: fixes for two corner cases and documentation (#19527) · 8deec2e4
    Felix Lange authored
    These changes fix two corner cases related to internal handling of types
    in package rlp: The "tail" struct tag can only be applied to the last field.
    The check for this was wrong and didn't allow for private fields after the
    field with the tag. Unsupported types (e.g. structs containing int) which
    implement either the Encoder or Decoder interface but not both 
    couldn't be encoded/decoded.
    
    Also fixes #19367
    8deec2e4
    History
    rlp: fixes for two corner cases and documentation (#19527)
    Felix Lange authored
    These changes fix two corner cases related to internal handling of types
    in package rlp: The "tail" struct tag can only be applied to the last field.
    The check for this was wrong and didn't allow for private fields after the
    field with the tag. Unsupported types (e.g. structs containing int) which
    implement either the Encoder or Decoder interface but not both 
    couldn't be encoded/decoded.
    
    Also fixes #19367
Code owners