-
Notifications
You must be signed in to change notification settings - Fork 149
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(sol-macro): #[sol]
attributes and JSON ABI support
#173
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.
partial review
Self::#variant(inner) => ::core::result::Result::Ok(inner), | ||
_ => ::core::result::Result::Err(self), | ||
} | ||
} |
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.
cannot be const if destructor cannot be evaluated, so generating this function is useless when we are already generating TryFrom
@@ -91,8 +91,6 @@ pub(super) fn expand(cx: &ExpCtxt<'_>, s: &ItemStruct) -> Result<TokenStream> { | |||
|
|||
#[allow(non_camel_case_types, non_snake_case, clippy::style)] | |||
const _: () = { | |||
use ::alloy_sol_types::private::*; |
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.
this failed with Multicall which has a Result
struct because of import ambiguity, we don't need to do glob imports anymore
Will rewrite some logic after #181 |
2c11010
to
80e7894
Compare
Motivation
Closes #73
Closes #143
Closes #169
Solution
See
sol!
docsPR Checklist