contracts icon indicating copy to clipboard operation
contracts copied to clipboard

AA Support for Custom Network

Open nmluthfi opened this issue 2 years ago • 4 comments

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

  • POST CONTRACT ADDRESS: https://thirdweb.com/zuperchain/0xb0b0Fee3aCdf4aC9c45E8167A00F2DFcA6fADE19/events
  • FACTORY_CONTRACT_ADDRESS: https://thirdweb.com/zuperchain/0x8045aF92cF46Aa93532188A3715c84C46b8951E5

Thanks, team!

nmluthfi avatar Jan 08 '24 11:01 nmluthfi

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!

warengonzaga avatar Jan 09 '24 06:01 warengonzaga

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

nkrishang avatar Jan 09 '24 09:01 nkrishang

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.

nmluthfi avatar Jan 13 '24 12:01 nmluthfi

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

warengonzaga avatar Feb 27 '24 14:02 warengonzaga