Skip to content
This repository was archived by the owner on Oct 20, 2024. It is now read-only.
This repository was archived by the owner on Oct 20, 2024. It is now read-only.

Getting exception while initializing SimpleAccount (event="noNetwork", code=NETWORK_ERROR, version=providers/5.7.2) #22

@Shazad0304

Description

@Shazad0304

I am trying to create wallet and trying to get getCounterFactualAddress but I am getting exceptions, I tried with userop.js and with @account-abstraction/sdk both.

userop.js:

const simpleAccount = await Presets.Builder.SimpleAccount.init(
signingKey,
config.rpcUrl,
config.entryPoint,
config.simpleAccountFactory
);

Exception: Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.7.2)

@account-abstraction/sdk:

const provider = new ethers.providers.JsonRpcProvider(config.rpcUrl);
const owner = new ethers.Wallet(signingKey, provider);
const sw = new SimpleAccountAPI({
provider,
entryPointAddress : config.entryPoint,
owner,
factoryAddress : config.simpleAccountFactory,
paymasterAPI: undefined
});

Exception: TypeError: undefined is not an object (evaluating 'e.errorArgs.sender')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions