thirdweb-dev / contracts

Collection of smart contracts deployable via thirdweb
https://docs.thirdweb.com/contracts
Apache License 2.0
1.01k stars 514 forks source link

AA Support for Custom Network #595

Open nmluthfi opened 11 months ago

nmluthfi commented 11 months ago

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 commented 10 months ago

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 commented 10 months ago

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.

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 commented 10 months ago

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?

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 commented 9 months ago

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