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(chisel): final statement & fetch err with complex type fixes #9081

Merged
merged 4 commits into from
Oct 10, 2024

Conversation

grandizzy
Copy link
Collaborator

@grandizzy grandizzy commented Oct 9, 2024

Motivation

Closes #4617 consider first assembly block return as final statement if any
Closes #4938 do not consider yul var declaration statement as final statement
Closes #6618 proper handle of custom error complex type when fetched from etherscan

Solution

@grandizzy grandizzy changed the title fix(chisel): consider assembly block return as final statement fix(chisel): assembly block final statement fixes Oct 9, 2024
@grandizzy grandizzy changed the title fix(chisel): assembly block final statement fixes fix(chisel): final statement & fetch with complex type fixes Oct 9, 2024
@grandizzy grandizzy changed the title fix(chisel): final statement & fetch with complex type fixes fix(chisel): final statement & fetch err with complex type fixes Oct 9, 2024
@grandizzy grandizzy marked this pull request as ready for review October 9, 2024 18:58
@@ -528,7 +528,22 @@ impl ChiselDispatcher {
err.name,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

omg why does this exist. We have ABI to solidity in cast and forge already, and a whole crate to interface with etherscan (foundry-block-explorers), please just use those to fix a trillion other bugs

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this definitely needs a cleanup pass but should happen in a followup

@@ -528,7 +528,22 @@ impl ChiselDispatcher {
err.name,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this definitely needs a cleanup pass but should happen in a followup

@grandizzy grandizzy merged commit 4065d38 into foundry-rs:master Oct 10, 2024
21 checks passed
@grandizzy grandizzy deleted the issue-4617 branch October 10, 2024 03:47
rplusq pushed a commit to rplusq/foundry that referenced this pull request Nov 29, 2024
…ndry-rs#9081)

* fix(chisel): consider assembly block return as final statement

* Fix 4938

* Start from first assembly block when checking for return statement

* Fix 6618
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
3 participants