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

refactor: fix ERC20TokenLimitModule and remove dependency on modular-account-libs #190

Conversation

jaypaik
Copy link
Collaborator

@jaypaik jaypaik commented Oct 7, 2024

Updates ERC20TokenLimitModule with some fixes and removes the modular-account-libs dependency.

Copy link

Summary by Octane

New Contracts

No new contracts were added in this PR.

Updated Contracts

  • ERC20TokenLimitModule.sol: Key changes include: Simplified limit management without token lists, added structured spending limits, and improved error handling.

🔗 Commit Hash: a2bd984

@jaypaik jaypaik requested a review from a team October 7, 2024 21:10

This comment was marked as resolved.


struct ERC20SpendLimit {
address token;
uint256[] limits;
uint256 limit;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this struct only used in installation?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes that's right.

src/modules/ERC20TokenLimitModule.sol Show resolved Hide resolved
@jaypaik jaypaik merged commit 83c27f8 into develop Oct 8, 2024
4 checks passed
@jaypaik jaypaik deleted the 10-07-refactor_fix_ERC20TokenLimitModule_and_remove_dependency_on_modular-account-libs branch October 8, 2024 19:01
jaypaik added a commit that referenced this pull request Oct 9, 2024
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.

3 participants