Added handling of parseStatuOptionKeys() error

This commit is contained in:
Samuel Hawksby-Robinson 2020-04-07 14:18:38 +01:00 committed by Andrea Maria Piana
parent 1858ad3ae2
commit a44fb3c372
1 changed files with 4 additions and 1 deletions

View File

@ -146,7 +146,10 @@ func (o *statusOptions) DecodeRLP(s *rlp.Stream) error {
return fmt.Errorf("expected an outer list: %v", err)
}
o.parseStatusOptionKeys()
err = o.parseStatusOptionKeys()
if err != nil {
return err
}
v := reflect.ValueOf(o)