function parseFactoryAddressFromAccountInitCode(
initCode,
): [`0x${string}`, `0x${string}`];Defined in: aa-sdk/core/src/account/smartContractAccount.ts:189
Parses the factory address and factory calldata from the provided account initialization code (initCode).
import { parseFactoryAddressFromAccountInitCode } from "@aa-sdk/core";
const [address, calldata] =
parseFactoryAddressFromAccountInitCode("0xAddressCalldata");| Parameter | Type | Description |
|---|---|---|
|
| The initialization code from which to parse the factory address and calldata |
[`0x${string}`, `0x${string}`]
A tuple containing the parsed factory address and factory calldata