Skip to content

fix(sim): use previous block number for creating alloy db in simulator #119

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

Merged
merged 1 commit into from
Jun 23, 2025

Conversation

dylanlott
Copy link
Contributor

@dylanlott dylanlott commented Jun 23, 2025

fix(sim): use previous block number for creating alloy db in simulator

PR #116 introduced a logic change that reused the block number from the block_env to fetch the state for the alloy DB instance, which results in querying for state of a block number that doesn't exist.

This commit reduces that number by 1 to correctly create the AlloyDB state from the previous block instead of the in-progress block.

- Commit `6499785` introduced a logic change that used the block number
  from the `block_env` to fetch the state for the alloy DB instance,
  which results in querying for state of a block number that doesn't exist.
- This commit reduces that number by 1 to correctly create the AlloyDB
  state from the previous block instead of the in-progress block.
Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@dylanlott dylanlott self-assigned this Jun 23, 2025
@dylanlott dylanlott requested review from Evalir and prestwich June 23, 2025 19:25
@dylanlott dylanlott added the bug Something isn't working label Jun 23, 2025 — with Graphite App
@dylanlott dylanlott requested review from prestwich and removed request for prestwich June 23, 2025 19:27
@dylanlott dylanlott marked this pull request as ready for review June 23, 2025 19:28
@dylanlott dylanlott merged commit 7dbea81 into main Jun 23, 2025
6 checks passed
@dylanlott dylanlott deleted the dylan/fix-alloydb-block-num branch June 23, 2025 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants