-
Notifications
You must be signed in to change notification settings - Fork 789
Remove the eip712 feature flag and have it enabled by default #2409
Conversation
|
Forgot to set nightly - it was reverted with the next commit |
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.
Can you keep the feature just in the Cargo.toml, to avoid breakage for now? It will be removed in the next major bump (e.g. for '3.0').
|
Sorry I have overloaded the PR for clippy fixes as well |
| openssl = ["ethers-contract-abigen/openssl"] | ||
|
|
||
| # Deprecated | ||
| eip712 = [] |
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.
Could you add them back here too?
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.
Ah right, yep.
| macros = ["syn", "cargo_metadata", "once_cell"] | ||
|
|
||
| # Deprecated | ||
| eip712 = [] |
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.
Same
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.
keep the flag in the Cargo.toml. Removing it will break compilation for library consumers
|
|
||
| ## Feature flags | ||
|
|
||
| - `eip712`: Provides the `Eip712` trait and derive procedural macro for EIP-712 encoding of typed data. |
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.
modify to say "does nothing"
| } | ||
| } | ||
|
|
||
| #[cfg(feature = "eip712")] |
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.
combine with main impl block
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.
Thanks!
Motivation
Closes #2408
Solution
Remove feature flag enabling by default.
PR Checklist