Skip to content

Commit

Permalink
Removed eip155:30 from rskWalletConnectNamespace as it's used in the … (
Browse files Browse the repository at this point in the history
#748)

* Removed eip155:30 from rskWalletConnectNamespace as it's used in the session when connecting

* Will delete uri text when submitted
  • Loading branch information
Freshenext authored Sep 21, 2023
1 parent 9d114fe commit 71f48a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/screens/walletConnect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/screens/walletConnect/walletConnect2.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
},
Expand Down

0 comments on commit 71f48a1

Please sign in to comment.