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

fix: check numbers of calls multicall precompile #1647

Merged

Conversation

obatirou
Copy link
Collaborator

precompile

Time spent on this PR:

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Resolves #

What is the new behavior?

Check the number of expected calls is equal to the number of actual calls made

@obatirou obatirou marked this pull request as ready for review November 29, 2024 14:53
@ClementWalter ClementWalter merged commit 3f7d131 into kkrt-labs:main Nov 29, 2024
13 checks passed
ClementWalter pushed a commit that referenced this pull request 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.
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.

2 participants