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

feat(forge bind): add option to skip json derives #7233

Merged
merged 3 commits into from
Feb 26, 2024

Conversation

reptarrat
Copy link
Contributor

Motivation

closes #7181

Additionally, I ran into issues with the serde derives because they also are not compatible with [T; >32].

Solution

To address #7181, this PR updates ethers deps to include fix from gakonst/ethers-rs#2743.

To address the issue with the serde derives, this PR adds a flag --skip-extra-derives, which skips adding the serde derives and the serde dep to the generated crate. Not sure if this is the best fix since it 1) extends the api for bind 2) might be better to fix the issue in the abigen logic

I manually verified that forge bind now generates valid rust bindings for the solidity source code mentioned in #7181

@mattsse mattsse merged commit 561ea2d into foundry-rs:master Feb 26, 2024
20 checks passed
zeroXbrock pushed a commit to flashbots/suavex-foundry that referenced this pull request Apr 2, 2024
* chore: bump ethers deps

* feat(forge bind): add option to skip json derives

---------

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
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.

Generated bindings attempt to derive Default for fixed length arrays over 32 length
2 participants