chainlink-starknet icon indicating copy to clipboard operation
chainlink-starknet copied to clipboard

Test ocr2 ReportCodec.MedianFromReport on illegal reports

Open krebernisak opened this issue 3 years ago • 1 comments

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

krebernisak avatar Oct 19 '22 20:10 krebernisak

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

archseer avatar Oct 20 '22 02:10 archseer