good morning!!!!

Skip to content
Snippets Groups Projects
Forked from github / maticnetwork / bor
Source project has a limited visibility.
  • Dmitry Zenovich's avatar
    rpc: add BlockNumber.MarshalText (#23324) · 7c4cad06
    Dmitry Zenovich authored
    Currently rpc.BlockNumber is marshalled to JSON as a numeric value, which is
    wrong because BlockNumber.UnmarshalJSON() wants it to either be hex-encoded
    or string "earliest"/"latest"/"pending". As a result, the call chain
    
        rpc.BlockNumberOrHashWithNumber(123) -> json.Marshal() -> json.Unmarshal()
    
    fails with error "cannot unmarshal object into Go value of type string".
    7c4cad06
Code owners
Assign users and groups as approvers for specific file changes. Learn more.