Skip to content
This repository was archived by the owner on Jan 9, 2025. It is now read-only.

Conversation

@enitrat
Copy link
Member

@enitrat enitrat commented Dec 5, 2024

The fix made previously in #1647 did not take into account that the starknet state might have been changed.

If we ever encounter a case where the multicall payload was wrongly formed and the number of executed calls doesn't match the input, we should revert the tx immediately.

@enitrat enitrat requested a review from ClementWalter December 5, 2024 13:49
@enitrat enitrat changed the title revert tx if multicall input is incoherent fix: revert tx if multicall input is incoherent Dec 5, 2024
@enitrat enitrat force-pushed the fix/revert-incoherent-multicall branch from b937f9e to 4ae241a Compare December 5, 2024 13:52
@codecov
Copy link

codecov bot commented Dec 5, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 63.9%. Comparing base (5a67ae1) to head (8d98d93).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...zero/kakarot/precompiles/kakarot_precompiles.cairo 0.0% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##            main   #1655     +/-   ##
=======================================
- Coverage   64.2%   63.9%   -0.3%     
=======================================
  Files         44      44             
  Lines       8341    8338      -3     
=======================================
- Hits        5355    5335     -20     
- Misses      2986    3003     +17     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@enitrat enitrat force-pushed the fix/revert-incoherent-multicall branch from 4ae241a to 8d98d93 Compare December 5, 2024 14:19
@ClementWalter ClementWalter merged commit 302775d into main Dec 5, 2024
16 checks passed
@ClementWalter ClementWalter deleted the fix/revert-incoherent-multicall branch December 5, 2024 19:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants