hirosystems / clarinet

Write, test and deploy high-quality smart contracts to the Stacks blockchain and Bitcoin.
https://hiro.so/clarinet
GNU General Public License v3.0
290 stars 129 forks source link

fix: prevent panic in trace #1467

Closed hugocaillard closed 3 weeks ago

hugocaillard commented 3 weeks ago

Description

Fix #1453

This PR patches a potential panic when display the trace.*

The indentation is still wrong when showing the traces involving contract-call? This implementation should be revisited in future work of the the traces (eg: when implemented traces in unit tests)

codecov[bot] commented 3 weeks ago

Codecov Report

Attention: Patch coverage is 0% with 13 lines in your changes missing coverage. Please review.

Project coverage is 40.71%. Comparing base (156058c) to head (93d9216).

Files Patch % Lines
components/clarity-repl/src/repl/tracer.rs 0.00% 13 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1467 +/- ## ========================================== - Coverage 40.72% 40.71% -0.02% ========================================== Files 87 87 Lines 32404 32412 +8 ========================================== Hits 13197 13197 - Misses 19207 19215 +8 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.