Skip to content

fix: expose AsyncIPCProvider on AsyncWeb3#3848

Open
suyua9 wants to merge 1 commit into
ApeWorX:mainfrom
suyua9:suyua9/expose-async-ipc-provider
Open

fix: expose AsyncIPCProvider on AsyncWeb3#3848
suyua9 wants to merge 1 commit into
ApeWorX:mainfrom
suyua9:suyua9/expose-async-ipc-provider

Conversation

@suyua9
Copy link
Copy Markdown

@suyua9 suyua9 commented May 20, 2026

Summary

  • expose AsyncIPCProvider on AsyncWeb3, matching the other async provider convenience attributes
  • add a small regression test for the class-level provider export

Rationale

AsyncIPCProvider is already exported from the package root, and the docs include examples that use AsyncWeb3.AsyncIPCProvider(...). Unlike AsyncHTTPProvider, WebSocketProvider, and AsyncEthereumTesterProvider, the AsyncWeb3 class did not expose this provider attribute, so those examples would fail at the symbol lookup step.

Testing

  • .venv/bin/python -m pytest tests/core/providers/test_provider_init.py -q -k 'async_web3_exposes_async_ipc_provider'
  • python3 -m py_compile web3/main.py tests/core/providers/test_provider_init.py
  • git diff --check

Note: running the full tests/core/providers/test_provider_init.py file in this local lightweight venv failed only for the existing EthereumTester provider parametrizations because eth_tester was not installed. The new focused regression test passed.

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.

1 participant