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

Improve Erc20PalletMatcher #44

Merged
merged 1 commit into from
May 17, 2024
Merged

Improve Erc20PalletMatcher #44

merged 1 commit into from
May 17, 2024

Conversation

Agusrodri
Copy link
Contributor

@Agusrodri Agusrodri commented May 17, 2024

This PR improves the way in which Erc20PalletMatcher receives the pallet index. Previously, it was receiving a plain const, and with these changes it now receives a PalletInstance (as the SingleAddressMatcher does).

This allows to pass a pallet and retrieve the pallet index from there, without the need of manually specifying the const in the implementation, which could be more error prone.

@Agusrodri Agusrodri merged commit 9c58f7e into main May 17, 2024
10 checks passed
@Agusrodri Agusrodri deleted the agustin-erc20-matcher branch May 17, 2024 16:40
Agusrodri added a commit that referenced this pull request May 17, 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.

2 participants