From 7b96662d28842edc7cb0007f96e83024a0cb464f Mon Sep 17 00:00:00 2001 From: moldy Date: Fri, 1 Dec 2023 11:30:16 -0500 Subject: [PATCH] fix: missed some plugingen fixes --- package.json | 2 +- packages/accounts/scripts/plugingen.ts | 4 ++-- packages/accounts/src/msca/plugins/multi-owner.ts | 12 +++++++----- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index ae3f6cb40e..54a4b7360f 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ ], "scripts": { "generate": "lerna run generate", - "postgenerate": "lint:write", + "postgenerate": "yarn lint:write", "build": "lerna run build --ignore=alchemy-daapp --ignore=aa-simple-dapp", "postbuild": "yarn lint:write", "build:examples": "lerna run build", diff --git a/packages/accounts/scripts/plugingen.ts b/packages/accounts/scripts/plugingen.ts index 22a1c1e73e..2e6ae0f208 100644 --- a/packages/accounts/scripts/plugingen.ts +++ b/packages/accounts/scripts/plugingen.ts @@ -145,7 +145,7 @@ export function plugingen({ )} }), providerDecorators: < TTransport extends SupportedTransports, - P extends ISmartAccountProvider & { account: MSCA } + P extends ISmartAccountProvider & { account: IMSCA } >( provider: P ) => ({ ${providerFunctions.join(",\n\n")} }), @@ -169,7 +169,7 @@ export function plugingen({ const imports = dedent` import { type GetFunctionArgs, encodeFunctionData } from "viem"; import type { Plugin } from "./types"; - import type { MSCA } from "../builder"; + import type { IMSCA } from "../builder"; import type { ISmartContractAccount, ISmartAccountProvider, SupportedTransports } from "@alchemy/aa-core"; `; diff --git a/packages/accounts/src/msca/plugins/multi-owner.ts b/packages/accounts/src/msca/plugins/multi-owner.ts index 4782486e63..b9554bf270 100644 --- a/packages/accounts/src/msca/plugins/multi-owner.ts +++ b/packages/accounts/src/msca/plugins/multi-owner.ts @@ -1,11 +1,11 @@ +import { type GetFunctionArgs, encodeFunctionData } from "viem"; +import type { Plugin } from "./types"; +import type { IMSCA } from "../builder"; import type { - ISmartAccountProvider, ISmartContractAccount, + ISmartAccountProvider, SupportedTransports, } from "@alchemy/aa-core"; -import { encodeFunctionData, type GetFunctionArgs } from "viem"; -import type { IMSCA } from "../builder"; -import type { Plugin } from "./types"; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // ERC6900PluginGen: This file is auto-generated by plugingen @@ -116,7 +116,9 @@ const MultiOwnerPlugin_ = { }), providerDecorators: < TTransport extends SupportedTransports, - P extends ISmartAccountProvider & { account: IMSCA } + P extends ISmartAccountProvider & { + account: IMSCA; + } >( provider: P ) => ({