From 71f48a1d5541494775161ffb0deb3ac3274f0bac Mon Sep 17 00:00:00 2001 From: Francis Rodriguez <39339295+Freshenext@users.noreply.github.com> Date: Thu, 21 Sep 2023 10:36:46 -0300 Subject: [PATCH] =?UTF-8?q?Removed=20eip155:30=20from=20rskWalletConnectNa?= =?UTF-8?q?mespace=20as=20it's=20used=20in=20the=20=E2=80=A6=20(#748)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Removed eip155:30 from rskWalletConnectNamespace as it's used in the session when connecting * Will delete uri text when submitted --- src/screens/walletConnect/index.tsx | 5 ++++- src/screens/walletConnect/walletConnect2.utils.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/screens/walletConnect/index.tsx b/src/screens/walletConnect/index.tsx index 41378309e..a6e600d1c 100644 --- a/src/screens/walletConnect/index.tsx +++ b/src/screens/walletConnect/index.tsx @@ -87,7 +87,10 @@ export const WalletConnectScreen = ({ route }: Props) => { setValue('wcUri', clipboardText) } - const onUriSubmitted = () => onCreateNewSession(wcUri) + const onUriSubmitted = () => { + setValue('wcUri', '') + onCreateNewSession(wcUri) + } const handleDisconnectSession = (mergedWc: WC2Session) => async () => { await onDisconnectSession(mergedWc.wc) diff --git a/src/screens/walletConnect/walletConnect2.utils.ts b/src/screens/walletConnect/walletConnect2.utils.ts index eb3bafa92..2132727b7 100644 --- a/src/screens/walletConnect/walletConnect2.utils.ts +++ b/src/screens/walletConnect/walletConnect2.utils.ts @@ -52,7 +52,7 @@ export const createWeb3Wallet = async () => { export const rskWalletConnectNamespace = { eip155: { - chains: ['eip155:30', 'eip155:31'], + chains: ['eip155:31'], // @TODO implement eip155:30 here -> make this dynamic according to the current chainId in the app methods: ['eth_sendTransaction', 'personal_sign'], events: ['chainChanged', 'accountsChanged'], },