Skip to content

Commit

Permalink
updates according to new sdk-dapp-utils changes
Browse files Browse the repository at this point in the history
  • Loading branch information
CiprianDraghici committed Sep 3, 2024
1 parent 7eb93c4 commit 02b1f58
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"license": "GPL-3.0-or-later",
"devDependencies": {
"@multiversx/sdk-core": ">= 13.5.0",
"@multiversx/sdk-dapp-utils": ">= 0.2.0-alpha.5",
"@multiversx/sdk-dapp-utils": ">= 0.2.0-alpha.6",
"@types/node": "18.19.0",
"@typescript-eslint/eslint-plugin": "5.0.0",
"@typescript-eslint/parser": "5.14.0",
Expand All @@ -41,7 +41,7 @@
},
"peerDependencies": {
"@multiversx/sdk-core": ">= 13.5.0",
"@multiversx/sdk-dapp-utils": ">= 0.2.0-alpha.5"
"@multiversx/sdk-dapp-utils": ">= 0.2.0-alpha.6"
},
"dependencies": {
"@types/jest": "^29.5.11",
Expand Down
8 changes: 4 additions & 4 deletions src/CrossWindowProvider/CrossWindowProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class CrossWindowProvider implements IDAppProviderBase {
throw new ErrProviderNotInitialized();
}

const isRelogin = await this.isConnected();
const isRelogin = this.isConnected();

if (isRelogin) {
const { address, signature, multisig, impersonate } = this.account;
Expand Down Expand Up @@ -164,11 +164,11 @@ export class CrossWindowProvider implements IDAppProviderBase {
return this.account?.address ?? '';
}

isInitialized(): boolean {
isInitialized = (): boolean => {
return this.initialized;
}
};

async isConnected(): Promise<boolean> {
isConnected(): boolean {
return Boolean(this.account.address);
}

Expand Down

0 comments on commit 02b1f58

Please sign in to comment.