-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: refactor permit types and add ERC20 permit support (#91)
* feat: refactor permit types and add ERC20 permit support Replaced custom `Permit` structs with standardized ones like `IERC721Permit::Permit` and `IERC20Permit::Permit`. This change enhances compatibility with token contracts and simplifies permit data handling. Also introduced a helper function for generating EIP-2612 domain and values for ERC20 permits. * Add `SolStruct` bound to `ERC20PermitData` struct Enforce `SolStruct` constraint on `ERC20PermitData` generic parameter. This ensures type safety by requiring the generic parameter to adhere to the `SolStruct` trait.
- Loading branch information
Showing
3 changed files
with
133 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters