slither icon indicating copy to clipboard operation
slither copied to clipboard

Deterministic printer output

Open lucas-manuel opened this issue 3 years ago • 0 comments

Describe the desired feature

When running: slither <file> --print function-summary and slither <file> --print vars-and-auth

The order or values in the arrays changes between runs. Examples below: Screen Shot 2022-09-12 at 11 49 10 AM Screen Shot 2022-09-12 at 11 50 12 AM

The intention was to run slither printers and write to files when updating submodules to check diffs, but since the order of the outputs in the arrays in non-deterministic, the diffs are too large to be usable.

Easiest solution in my opinion would be to simply alphabetically order the array values.

lucas-manuel avatar Sep 12 '22 15:09 lucas-manuel