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: PoA detect and add amoy #84

Merged
merged 2 commits into from
Oct 25, 2024
Merged

Conversation

antazoey
Copy link
Member

What I did

Adds amoy to list of PoA middleware needing networks
Also makes the detection for PoA-needy dynamic (same as ape-node), so if we forget a different one, it will "still work".

fixes: ApeWorX/ape-polygon#33

How I did it

Add the chain ID
Handle ExtraDataLengthError

How to verify it

ape console --network polygon:amoy:alchemy

then

provider.get_block("latest")

^ That fails on main branch.

Checklist

  • Passes all linting checks (pre-commit and CI jobs)
  • New test cases have been added and are passing
  • Documentation has been updated
  • PR title follows Conventional Commit standard (will be automatically included in the changelog)

@antazoey antazoey merged commit d440bc7 into ApeWorX:main Oct 25, 2024
5 of 14 checks passed
@antazoey antazoey deleted the fix/poa-detection branch October 25, 2024 14:32
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.

Missing Middleware for Proof-of-Authority Chains in Ape Polygon Plugin
2 participants