Skip to content

Commit

Permalink
walletRepo.connect/disconnect sync default to true
Browse files Browse the repository at this point in the history
  • Loading branch information
liujun93 committed Jan 2, 2024
1 parent d106f6a commit e44171d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export class WalletRepo extends StateBase {
this.actions?.viewOpen?.(false);
};

connect = async (walletName?: WalletName, sync?: boolean) => {
connect = async (walletName?: WalletName, sync: boolean = true) => {
if (walletName) {
const wallet = this.getWallet(walletName);
await wallet?.connect(sync);
Expand All @@ -122,7 +122,7 @@ export class WalletRepo extends StateBase {
}
};

disconnect = async (walletName?: WalletName, sync?: boolean) => {
disconnect = async (walletName?: WalletName, sync: boolean = true) => {
if (walletName) {
await this.getWallet(walletName)?.disconnect(sync);
} else {
Expand Down

0 comments on commit e44171d

Please sign in to comment.