onlydustxyz / starklings

An interactive tutorial to get you up and running with Starknet
309 stars 83 forks source link

Patches not processed correctly #165

Closed tekkac closed 2 years ago

tekkac commented 2 years ago

Description

When displaying a solution with the command python starklings.py -s path/to/exercise.cairo, mid-file changes are applied one line above the actual changes which can break solutions. This looks like an off-by-one issue in the patch library used in src/solutions.py

Acceptance criteria

Bernardstanislas commented 2 years ago

@tdelabro I take it since I include it in the work of generating the solutions upon binary build using hooks