Skip to content

Commit

Permalink
fix: missed some plugingen fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
moldy530 committed Dec 1, 2023
1 parent 0f62d68 commit 85c008e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/accounts/scripts/plugingen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export function plugingen({
)} }),
providerDecorators: <
TTransport extends SupportedTransports,
P extends ISmartAccountProvider<TTransport> & { account: MSCA<TTransport> }
P extends ISmartAccountProvider<TTransport> & { account: IMSCA<TTransport> }
>(
provider: P
) => ({ ${providerFunctions.join(",\n\n")} }),
Expand All @@ -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";
`;

Expand Down
12 changes: 7 additions & 5 deletions packages/accounts/src/msca/plugins/multi-owner.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -116,7 +116,9 @@ const MultiOwnerPlugin_ = {
}),
providerDecorators: <
TTransport extends SupportedTransports,
P extends ISmartAccountProvider<TTransport> & { account: IMSCA<TTransport> }
P extends ISmartAccountProvider<TTransport> & {
account: IMSCA<TTransport>;
}
>(
provider: P
) => ({
Expand Down

0 comments on commit 85c008e

Please sign in to comment.