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

fix: replaced the SEVM library with a regex-based approach for the interface matching mechanism in ERC Registry project #1115

Conversation

quiet-node
Copy link
Member

Description:
This PR modified the bytecode analysis logic to utilize a regex-based approach in the ERC Registry project. This technique directly matches function and event signatures against the bytecode to ensure compliance with ERC-20 and ERC-721 standards. It replaces the previous implementation, which relied on the Contract.isErc() method from the SEVM library, offering greater simplicity by eliminating unnecessary overhead.

Related issue(s):

Fixes #1114

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@quiet-node quiet-node added the enhancement New feature or request label Dec 18, 2024
@quiet-node quiet-node added this to the 0.12.0 milestone Dec 18, 2024
@quiet-node quiet-node self-assigned this Dec 18, 2024
@quiet-node quiet-node requested review from a team as code owners December 18, 2024 04:06
Copy link

github-actions bot commented Dec 18, 2024

Test Results

 16 files  ±0   83 suites  ±0   12m 15s ⏱️ +13s
294 tests ±0  288 ✅ +6  6 💤 ±0  0 ❌  - 6 
303 runs  ±0  296 ✅ +6  7 💤 ±0  0 ❌  - 6 

Results for commit 85077b7. ± Comparison against base commit 3baeeaa.

♻️ This comment has been updated with latest results.

@quiet-node quiet-node merged commit ea2e32f into main Dec 18, 2024
32 of 33 checks passed
@quiet-node quiet-node deleted the 1114-erc-registry-phase-3-sevmcontractiserc-sometimes-fail-to-collect-legitimate-erc-20-or-erc-721-contracts-1 branch December 18, 2024 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ERC Registry] Phase 3: sevm.Contract.isErc() sometimes fail to collect legitimate ERC-20 or ERC-721 contracts
2 participants