Skip to content

Commit 57161cb

Browse files
chore: bump pos sdk + removed manual session update
1 parent 8c9356a commit 57161cb

File tree

3 files changed

+11
-22
lines changed

3 files changed

+11
-22
lines changed

dapps/pos-app/app/scan.tsx

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,7 @@ export default function QRModalScreen() {
3737
const tokenData = getTokenById(token);
3838

3939
usePOSListener("connected", ({ session }) => {
40-
Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Heavy);
4140
console.log("Connected to wallet", session);
42-
43-
// Disable deep link redirections
44-
const updatedSession = {
45-
...session,
46-
sessionConfig: {
47-
disableDeepLink: true,
48-
},
49-
};
50-
51-
posClient?.engine.signClient.session.set(session.topic, updatedSession);
5241
});
5342

5443
usePOSListener("disconnected", () => {
@@ -69,6 +58,7 @@ export default function QRModalScreen() {
6958

7059
usePOSListener("qr_ready", async ({ uri }) => {
7160
console.log("QR ready");
61+
Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Heavy);
7262
setQrUri(uri);
7363
});
7464

@@ -84,7 +74,6 @@ export default function QRModalScreen() {
8474

8575
usePOSListener("payment_broadcasted", () => {
8676
console.log("Payment broadcasted");
87-
Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Heavy);
8877
});
8978

9079
usePOSListener("payment_failed", ({ error }) => {

dapps/pos-app/package-lock.json

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

dapps/pos-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"@reown/appkit-wagmi-react-native": "0.0.0-accounts-canary.1-20251023174733",
2424
"@sentry/react-native": "^7.4.0",
2525
"@tanstack/react-query": "^5.90.5",
26-
"@walletconnect/pos-client": "0.0.0-canary.3",
26+
"@walletconnect/pos-client": "0.0.0-canary.4",
2727
"@walletconnect/react-native-compat": "2.22.4",
2828
"expo": "~54.0.17",
2929
"expo-application": "~7.0.7",

0 commit comments

Comments
 (0)