Skip to content

Commit

Permalink
feat: remove sub-account support for light account
Browse files Browse the repository at this point in the history
  • Loading branch information
avasisht23 committed Oct 31, 2023
1 parent 96a3f8c commit 71869ef
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit 71869ef

Please sign in to comment.