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

Make it possible to instantiate AlchemyProvider for more chains. #3811

Closed
antondalgren opened this issue Feb 22, 2023 · 7 comments
Closed

Make it possible to instantiate AlchemyProvider for more chains. #3811

antondalgren opened this issue Feb 22, 2023 · 7 comments
Labels
enhancement New feature or improvement. fixed/complete This Bug is fixed or Enhancement is complete and published. v6 Issues regarding v6

Comments

@antondalgren
Copy link

antondalgren commented Feb 22, 2023

Describe the Feature

When creating the AlchemyProvider using this call new ethers.AlchemyProvider(chainId, apiKey) with the chainId being on of mainnet and testnet of Arbitrum(42161, 421613) and Optimism(10, 420) and the testnet for Polygon(80001) it throws unsupported network (argument="network", value="unknown", code=INVALID_ARGUMENT, version=6.0.5)

Code Example

No response

@antondalgren antondalgren added the enhancement New feature or improvement. label Feb 22, 2023
@ricmoo ricmoo added on-deck This Enhancement or Bug is currently being worked on. v6 Issues regarding v6 labels Feb 22, 2023
@ricmoo
Copy link
Member

ricmoo commented Feb 23, 2023

Added in v6.0.6. Let me know if you still have any issues.

Thanks! :)

@ricmoo ricmoo closed this as completed Feb 23, 2023
@ricmoo ricmoo added fixed/complete This Bug is fixed or Enhancement is complete and published. and removed on-deck This Enhancement or Bug is currently being worked on. labels Feb 23, 2023
@antondalgren
Copy link
Author

Hi,

Thanks @ricmoo it works for optimism and arbitrum, but still not for matic-mumbai, passing the chaincode 80001 to new ethers.AlchemyProvider(80001, apikey); still doesn't work.

TypeError: unsupported network (argument="network", value="maticMumbai", code=INVALID_ARGUMENT, version=6.0.7)

@ricmoo
Copy link
Member

ricmoo commented Feb 23, 2023

Try "maticmum"?

@antondalgren
Copy link
Author

Could it be that it is registered as maticMumbai but

wants it as maticmum ?

@antondalgren
Copy link
Author

new ethers.AlchemyProvider("maticmum", args.apiKey); also throws
TypeError: unknown network (argument="network", value="maticmum", code=INVALID_ARGUMENT, version=6.0.7)

@ricmoo
Copy link
Member

ricmoo commented Feb 23, 2023

Ok. I’ll look into it tomorrow. :)

@ricmoo
Copy link
Member

ricmoo commented Feb 23, 2023

Mumbai works in v6.0.8 now.

Thanks! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement. fixed/complete This Bug is fixed or Enhancement is complete and published. v6 Issues regarding v6
Projects
None yet
Development

No branches or pull requests

2 participants