(typ *TypeEnum, body scode.Bytes)
| 519 | } |
| 520 | |
| 521 | func checkEnum(typ *TypeEnum, body scode.Bytes) error { |
| 522 | if selector := DecodeUint(body); int(selector) >= len(typ.Symbols) { |
| 523 | return errors.New("enum selector out of range") |
| 524 | } |
| 525 | return nil |
| 526 | } |
no test coverage detected