From 736075b817844b9d05aa9f5883e7d75e38ce04a4 Mon Sep 17 00:00:00 2001 From: Alex Jbanca Date: Wed, 21 Aug 2024 08:42:25 +0300 Subject: [PATCH] fix(WalletConnect): Fixing sign for uniswap and paraswap There are two fixes needed here. 1. Status-go fix for unknown primitive when signing the message 2. Fix for Paraswap pairing failure due to required namespaces mismatch Needs: https://github.com/status-im/status-go/pull/5755 --- storybook/qmlTests/tests/tst_DAppsWorkflow.qml | 2 +- ui/app/AppLayouts/Wallet/services/dapps/helpers.js | 2 +- vendor/status-go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/storybook/qmlTests/tests/tst_DAppsWorkflow.qml b/storybook/qmlTests/tests/tst_DAppsWorkflow.qml index c967448b9b..86ad778591 100644 --- a/storybook/qmlTests/tests/tst_DAppsWorkflow.qml +++ b/storybook/qmlTests/tests/tst_DAppsWorkflow.qml @@ -700,7 +700,7 @@ Item { verify(eip155.hasOwnProperty("methods")) verify(eip155.methods.length > 0) verify(eip155.hasOwnProperty("events")) - compare(eip155.events.length, 2) + compare(eip155.events.length, 5) } function test_getAccountsInSession() { diff --git a/ui/app/AppLayouts/Wallet/services/dapps/helpers.js b/ui/app/AppLayouts/Wallet/services/dapps/helpers.js index fab211a86d..9531b5cc7f 100644 --- a/ui/app/AppLayouts/Wallet/services/dapps/helpers.js +++ b/ui/app/AppLayouts/Wallet/services/dapps/helpers.js @@ -68,7 +68,7 @@ function buildSupportedNamespaces(chainIds, addresses, methods) { "eip155":{ "chains": [${eipChainIds.join(',')}], "methods": [${methodsStr}], - "events": ["accountsChanged", "chainChanged"], + "events": ["chainChanged","accountsChanged","message","disconnect","connect"], "accounts": [${eipAddresses.join(',')}] } }` diff --git a/vendor/status-go b/vendor/status-go index a00bf6977b..2c430568b1 160000 --- a/vendor/status-go +++ b/vendor/status-go @@ -1 +1 @@ -Subproject commit a00bf6977b1f0b279e20546df575397c36461339 +Subproject commit 2c430568b108b5080852dd60e669b92ac5631865