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: block height increment in sdk mine_block #1466

Closed hugocaillard closed 3 weeks ago

hugocaillard commented 3 weeks ago

Description

In sdk.mine_block, session.advance_chain_tip(1); must be called before executing the contract calls.

This PR includes other minor fix

hugocaillard commented 3 weeks ago

Thanks @BowTiedRadone for reporting this issue

codecov[bot] commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 40.71%. Comparing base (1635f68) to head (bbbb98f).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1466 +/- ## ======================================= Coverage 40.71% 40.71% ======================================= Files 87 87 Lines 32404 32404 ======================================= Hits 13193 13193 Misses 19211 19211 ```

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