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

Returning False when connecting to remote testnet node. #9

Closed
andreidev1 opened this issue Apr 3, 2023 · 1 comment
Closed

Returning False when connecting to remote testnet node. #9

andreidev1 opened this issue Apr 3, 2023 · 1 comment
Assignees

Comments

@andreidev1
Copy link
Contributor

Hi
From what I understand a ZkSyncBuilder instance is basically a Web3 object with an instance of zksync module.
Whenever I want to check if I am connected to the remote L2 zksync testnet node it always returns me False.
Sounds weird cause when I connect to a remote L1 ETH node using HTTPProvider object from Web3 instance it always returns me True.

from zksync2.module.module_builder import ZkSyncBuilder

ZKSYNC_TEST_URL = "https://zksync2-testnet.zksync.dev"
w3 = ZkSyncBuilder.build(ZKSYNC_TEST_URL)
print(w3.is_connected())

Shouldn't this snippet code return me True ?

@vyastrebovvareger
Copy link
Collaborator

vyastrebovvareger commented Apr 4, 2023

is_connected method corresponds for the default provider of Web3 object.
Meanwhile ZkSync provider is added as the middleware_onion and ZkSync module is just attached to this Web3 obejct,

Currently there is no way to make it work

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

No branches or pull requests

3 participants