Skip to content

Commit

Permalink
feat: remove sub-account support for light account (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
avasisht23 committed Nov 3, 2023
1 parent f7d487c commit e20c21b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/accounts/src/light-account/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ export class LightSmartContractAccount<
encodeFunctionData({
abi: LightAccountFactoryAbi,
functionName: "createAccount",
args: [await this.owner.getAddress(), this.index],
// light account does not support sub-accounts
args: [await this.owner.getAddress(), 0n],
}),
]);
}
Expand Down
1 change: 0 additions & 1 deletion packages/accounts/src/light-account/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { chains } from "@alchemy/aa-core";
import type { Address, Chain } from "viem";
import {
arbitrum,
Expand Down

0 comments on commit e20c21b

Please sign in to comment.