0xPolygonMiden / miden-client

Client library that facilitates interaction with the Miden rollup
MIT License
32 stars 28 forks source link

fix: replace known note script in note_scripts if exists #307

Closed mFragaBA closed 5 months ago

mFragaBA commented 5 months ago

Currently, we ignore note scripts if they already exist in the note_scripts table. This isn't necessarily wrong, but it makes it akward to debug notes because if you want to add a debug.stack instruction for example, the note script hash doesn't change and thus if you already had the note script on the db the change won't go through. Because of that, you end up needing to clear the db (or at least the existing row) on each change and it slows down the debug process