Skip to content

Commit d6d4d71

Browse files
committed
chore: disable enableAutoSubAccounts external prop
1 parent 4539500 commit d6d4d71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/wallet-sdk/src/createCoinbaseWalletSDK.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { SubAccount, ToOwnerAccountFn, store } from './store/store.js';
1919

2020
export type CreateCoinbaseWalletSDKOptions = Partial<AppMetadata> & {
2121
preference?: Preference;
22-
subAccounts?: SubAccountOptions;
22+
subAccounts?: Omit<SubAccountOptions, 'enableAutoSubAccounts'>;
2323
paymasterUrls?: Record<number, string>;
2424
};
2525

@@ -57,6 +57,7 @@ export function createCoinbaseWalletSDK(params: CreateCoinbaseWalletSDKOptions)
5757

5858
store.subAccountsConfig.set({
5959
toOwnerAccount: params.subAccounts?.toOwnerAccount,
60+
// @ts-expect-error - enableSubAccounts is not officially supported yet
6061
enableAutoSubAccounts: params.subAccounts?.enableAutoSubAccounts,
6162
defaultSpendPermissions: params.subAccounts?.defaultSpendPermissions,
6263
});

0 commit comments

Comments
 (0)