chainlink-starknet
chainlink-starknet copied to clipboard
Test ocr2 ReportCodec.MedianFromReport on illegal reports
Extra points: try to generalize this kind of behaviour test - build an illegal report smart fuzzer based on declared report dimensions.
Originally posted by @aalu1418 in https://github.com/smartcontractkit/chainlink-starknet/pull/169#discussion_r997308113
I have report fuzzing here: https://github.com/smartcontractkit/chainlink-starknet/issues/164
It's hard to make it not panic by always generating valid report lengths + valid felts