function getMAV2UpgradeToData<TTransport, TChain, TSigner, TAccount>(
client,
args,
): Promise<UpgradeToData & object>;Defined in: account-kit/smart-contracts/src/ma-v2/utils.ts:210
Retrieves the data necessary to upgrade to a Modular Account V2 (MA v2). Note that the upgrade will be to the Semi Modular Account Storage variant
import {
createLightAccountClient,
getMAV2UpgradeToData,
} from "@account-kit/smart-contracts";
const client = createLightAccountClient({});
const upgradeData = await getMAV2UpgradeToData(client, {});| Type Parameter | Default type |
|---|---|
| |
|
|
|
|
|
|
| Parameter | Type | Description |
|---|---|---|
|
| The smart account client |
|
| The arguments required for the upgrade |
Promise<UpgradeToData & object>
A promise that resolves to upgrade data augmented with a function to create a Modular Account V2