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

GetCounterFactualAddressError: getCounterFactualAddress failed #656

Open
yy907668946 opened this issue May 8, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@yy907668946
Copy link

yy907668946 commented May 8, 2024

I used exapmle code to test aa-sdk, but it reports the 'GetCounterFactualAddressError: getCounterFactualAddress failed', the code is import { createMultiOwnerModularAccount } from "@alchemy/aa-accounts";
import {
LocalAccountSigner,
createSmartAccountClient,
polygonMumbai,
} from "@alchemy/aa-core";
import { http } from "viem";

async function test() {
const chain = polygonMumbai;
const signer = LocalAccountSigner.mnemonicToAccountSigner(
"xxx"
);
const rpcTransport = http("https://polygon-mumbai.g.alchemy.com/v2/demo");

const account = await createMultiOwnerModularAccount({
transport: rpcTransport,
chain,
signer,
});

const smartAccountClient = createSmartAccountClient({
transport: rpcTransport,
chain,
account: account
});
}

test()

@yy907668946 yy907668946 added the bug Something isn't working label May 8, 2024
@JoseMiguelHerrera
Copy link

@yy907668946 did you ever find a way around this? Trying to test this out and I'm stuck at the same spot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants