Skip to content

Commit 5904c0c

Browse files
authored
Merge pull request #3 from argentlabs/update-starknetkit
chore: update starknetkit
2 parents dcc4387 + af1ff07 commit 5904c0c

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"react": "19.0.0-rc-02c0e824-20241028",
2424
"react-dom": "19.0.0-rc-02c0e824-20241028",
2525
"starknet": "^6.11.0",
26-
"starknetkit": "^2.3.3"
26+
"starknetkit": "^2.4.0"
2727
},
2828
"devDependencies": {
2929
"@commitlint/cli": "^19.5.0",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/connectors/index.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import {
33
isInArgentMobileAppBrowser,
44
ArgentMobileConnector,
55
} from "starknetkit/argentMobile"
6-
/* import {
6+
import {
77
BraavosMobileConnector,
88
isInBraavosMobileAppBrowser,
9-
} from "starknetkit/braavosMobile" */
9+
} from "starknetkit/braavosMobile"
1010
import { InjectedConnector } from "starknetkit/injected"
1111
import { WebWalletConnector } from "starknetkit/webwallet"
1212

13-
/* const isMobileDevice = () => {
13+
const isMobileDevice = () => {
1414
if (typeof window === "undefined") {
1515
return false
1616
}
@@ -28,7 +28,7 @@ import { WebWalletConnector } from "starknetkit/webwallet"
2828
// Combine checks: Must match user agent AND (touch support OR small screen)
2929
return isMobileUA && (hasTouchSupport || isSmallScreen)
3030
}
31-
*/
31+
3232
export const availableConnectors = () => {
3333
if (isInArgentMobileAppBrowser()) {
3434
return [
@@ -42,9 +42,9 @@ export const availableConnectors = () => {
4242
]
4343
}
4444

45-
/* if (isInBraavosMobileAppBrowser()) {
45+
if (isInBraavosMobileAppBrowser()) {
4646
return [BraavosMobileConnector.init({})]
47-
} */
47+
}
4848

4949
return [
5050
new InjectedConnector({ options: { id: "argentX" } }),
@@ -56,7 +56,7 @@ export const availableConnectors = () => {
5656
chainId: CHAIN_ID,
5757
},
5858
}),
59-
/* isMobileDevice() ? BraavosMobileConnector.init({}) : null, */
59+
isMobileDevice() ? BraavosMobileConnector.init({}) : null,
6060
new WebWalletConnector({ url: ARGENT_WEBWALLET_URL }),
6161
].filter((connector) => connector !== null)
6262
}

0 commit comments

Comments
 (0)