Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: batch factory deps for broadcastable tx #455

Merged
merged 11 commits into from
Jul 3, 2024
Merged

Conversation

Karrq
Copy link
Contributor

@Karrq Karrq commented Jul 2, 2024

Motivation

Batching factory deps has been added since #412, but support for broadcastable tx (and create) was never done.
After investigating #450 it became clear that the simulation issue was due to this missing feature.

Solution

  1. Batch factory deps in broadcastable txns, creating new transactions as needed
  2. Add support for persisted_factory_deps for transact, used in simulation

The PR also fixes the following issues discovered:

  1. Nonce returned/set by cheatcodes were the full nonce, instead of only the tx nonce
  2. Static calls converted to zk transactions persisted any state changes, instead of ignoring it entirely

@Karrq Karrq linked an issue Jul 2, 2024 that may be closed by this pull request
2 tasks
@Karrq Karrq requested a review from nbaztec July 2, 2024 20:34
@Karrq Karrq requested a review from Jrigada July 3, 2024 14:37
tests(zk): check static-call in broadcast
@Karrq Karrq merged commit ab00f2e into dev Jul 3, 2024
11 checks passed
@Karrq Karrq deleted the fix/broadcast-batched-fdeps branch July 3, 2024 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Code hash not known error when trying to deploy factory contract
2 participants