alchemyplatform / aa-sdk

https://www.alchemy.com/account-abstraction
MIT License
234 stars 125 forks source link

GetCounterFactualAddressError #1119

Open JoseMiguelHerrera opened 3 weeks ago

JoseMiguelHerrera commented 3 weeks ago

Thanks for filling out this bug report. Please provide as much detail as possible.

If your issue is with our RPC APIs and not the SDK please report your issue on (discord)[https://alchemy.com/discord].

[REQUIRED] Environment

[REQUIRED] Describe the problem

How to reproduce:

I'm simply trying to do this https://accountkit.alchemy.com/reference/account-kit/smart-contracts/functions/createModularAccountAlchemyClient#createmodularaccountalchemyclient

creating the client.

No matter what I do, I get the same error: throw new GetCounterFactualAddressError(); ^

GetCounterFactualAddressError: getCounterFactualAddress failed

Relevant code or sample repro:

https://accountkit.alchemy.com/reference/account-kit/smart-contracts/functions/createModularAccountAlchemyClient#createmodularaccountalchemyclient

moldy530 commented 1 week ago

this is usually the case because an RPC request fails, can you check your network tab and confirm that there's no network errors during intialization?