Skip to content

Commit

Permalink
SmartWallet fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MananTank committed Feb 14, 2024
1 parent a0cd904 commit 0261f59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ export const SmartConnectUI = (props: {
done(account: Account) {
setPersonalAccount(account);
},
// for headless wallets - directly connect to the target chain
chainId: personalWalletConfig.isHeadless
? props.smartWalletChainId
: undefined,
chainId: props.smartWalletChainId,
};

if (personalWalletConfig.connectUI) {
Expand Down
3 changes: 1 addition & 2 deletions packages/thirdweb/src/wallets/smart/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@ export class SmartWallet implements WalletWithPersonalAccount {
* ```
*/
async disconnect(): Promise<void> {
// noop
// should we disconnect the personal account?
this.personalAccount?.wallet.disconnect();
}
}

Expand Down

0 comments on commit 0261f59

Please sign in to comment.