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

chore: small cheatcode improvements #4799

Merged
merged 2 commits into from
Apr 22, 2023

Conversation

DaniPopes
Copy link
Member

@DaniPopes DaniPopes commented Apr 22, 2023

Motivation

Review with "Hide whitespace" on

Solution

Comment on lines +21 to +23
struct Log { bytes32[] topics; bytes data; }
struct Rpc { string name; string url; }
struct FsMetadata { bool isDir; bool isSymlink; uint256 length; bool readOnly; uint256 modified; uint256 accessed; uint256 created; }
Copy link
Member Author

Choose a reason for hiding this comment

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

I tried formatting the structs to more lines but it doesn't seem like they get parsed? @mattsse

Copy link
Member

@mattsse mattsse Apr 22, 2023

Choose a reason for hiding this comment

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

yeah looks like the struct parser of abigen has limitations when it comes to new lines, I think it uses \n as separator

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

much cleaner, tysm!

@mattsse mattsse added the A-cheatcodes Area: cheatcodes label Apr 22, 2023
@mattsse mattsse merged commit dedc31e into foundry-rs:master Apr 22, 2023
iFrostizz pushed a commit to iFrostizz/foundry that referenced this pull request Apr 22, 2023
* fmt: abigens

* Pass by reference when patching Hardhat selector

rebase master
@DaniPopes DaniPopes deleted the chore/cheatcodes branch April 24, 2023 14:38
mattsse added a commit that referenced this pull request Apr 26, 2023
* add conditional breakpoints

* help desk

* char return

* chore: small cheatcode improvements (#4799)

* fmt: abigens

* Pass by reference when patching Hardhat selector

rebase master

* help desk

* fmt

* help desk

rebase

* chore(clippy): make clippy happy

---------

Co-authored-by: DaniPopes <[email protected]>
Co-authored-by: Matthias Seitz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cheatcodes Area: cheatcodes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants