Skip to content

createKernelAccount returns excessively deep and possibly infinite. #198

@dawb

Description

@dawb

We have implemented the createKernelAccount process as per the documentation but are receiving the following error when trying to build the release. We have tried explicitly setting abiItem as per below but this unfortunately hasn't resolved the depth issue.

Is this a known error or is this something being caused by another configuration?

const abiItem: AbiItem = getAbiItem({
abi: KernelV3ExecuteAbi,
name: "execute",
});
const account = await createKernelAccount(publicClient, {
entryPoint,
kernelVersion,
plugins: {
sudo: ecdsaValidator,
action: {
address: zeroAddress,
selector: toFunctionSelector(abiItem),
},
}
});

Error:
./node_modules/@zerodev/waas/node_modules/@zerodev/permissions/policies/callPolicyUtils.ts:37:32
Type error: Type instantiation is excessively deep and possibly infinite.

35 | }
36 | }

37 | const abiItem = getAbiItem({

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions