-
Notifications
You must be signed in to change notification settings - Fork 151
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: add network generic to sol-macro #557
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine, can you test by patching to this branch on your PR? There's a test in alloy-contract
address: alloy_sol_types::private::Address, | ||
provider: P, | ||
network: ::core::marker::PhantomData<N>, | ||
transport: ::core::marker::PhantomData<T>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be one field and starting with underscore to silence unused warnings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got it
I did! 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great , thank u mr on bjerg
Motivation
sol!
needs to be adjusted to work with alloy-rs/alloy#190Solution
Adds network and transport generics to the generated code, which requires the new provider from alloy-rs/alloy#190
I'd like some extensive reviewing of this as I'm not too experienced with proc macros
PR Checklist