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

AA Support for Custom Network #595

Open
nmluthfi opened this issue Jan 8, 2024 · 4 comments
Open

AA Support for Custom Network #595

nmluthfi opened this issue Jan 8, 2024 · 4 comments

Comments

@nmluthfi
Copy link

nmluthfi commented Jan 8, 2024

Hi, Thirdweb team,

I'm creating a social dApp using a custom contract and Smart Wallet on my custom network. When I try to write the contract via the dApp. It returns Unhandled Runtime Error.

It seems Smart Wallet function is available only for certain networks per https://support.thirdweb.com/wallets/dwWCB7ZD5sNcHEAj4rFFui/smart-wallet-faqs/64y68nzTQkUZw6r6FryFgK. However, when I tried to write into AccountFactory contract directly from the Thirdweb dashboard it returned success.

Here are the relevant links

Thanks, team!

@warengonzaga
Copy link
Member

Hello, @nkrishang and @kumaryash90. Could you please take a look here?

To summarize, the user is having issues using our AA with the custom network. Is it possible to add this support to our AA contracts?

Originally from Discord thread post: https://discord.com/channels/834227967404146718/1178957697891176448

Let's move here instead, @nmluthfi thanks!

@nkrishang
Copy link
Contributor

Hey @nmluthfi 👋🏽

Our AA bundler and Paymaster service is available only on select chains. And so, we've only enabled deployment of account factory contracts on these supported chains.

I suggest looking at https://portal.thirdweb.com/wallets/smart-wallet/infrastructure, specifically the custom bundler and paymaster section.

  • Did you manage to deploy AccountFactory contract on the custom network (zuperchain) by yourself?

  • Additionally, if you've deployed an AccountFactory contract to zuperchain, writing to it via the dashboard will work since you're making direct contract calls to the contract. However, using the SDK's smart wallet API (without specifying your own bundler / paymaster for the custom network) will run into an error, since the SDK does not have a bundler/paymaster by default for zuperchain.

Let me know if this helps!

P.S. I'll need zuperchain's chain ID and an RPC URL to access the URLs you have sent over, since thirdweb currently does not include support for zuperchain by default (i.e. without adding it as a custom network for your own individual dahsboard). You can verify this by searching for zuperchain on https://thirdweb.com/chainlist

@nmluthfi
Copy link
Author

Hello @nkrishang and @warengonzaga

Thanks for your reply. I'm sorry for the late response. GitHub doesn't give any notification, although you guys mentioned me. weird.

Anyway regarding @nkrishang questions.

Did you manage to deploy AccountFactory contract on the custom network (zuperchain) by yourself?

  • Yes, i've managed to deploy the AccountFactory from Thirdweb Dashboard on ZuperChain.

I'll need zuperchain's chain ID and an RPC URL to access the URLs you have sent over, since thirdweb currently does not include support for zuperchain by default (i.e. without adding it as a custom network for your own individual dahsboard).

  • Sure, of course. Here's the network info

Network name*: ZuperChain V2
Network ID*: zuperchain-v2
Chain ID*: 6991015
Currency Symbol*: ZUPER
Network type: Testnet
RPC URL*: https://froopyland.dymension.xyz/23/zuperchain_6991015-1/evmrpc

I hope this helps. Please, let me know if you have any questions.

@warengonzaga
Copy link
Member

Can you check this @kumaryash90 or @nkrishang ? Thanks!

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