Skip to content

Commit

Permalink
Showing 4 changed files with 75 additions and 347 deletions.
4 changes: 3 additions & 1 deletion app/context/WalletConnect/WalletConnectContext.js
Original file line number Diff line number Diff line change
@@ -175,7 +175,9 @@ export const WalletConnectContextProvider = ({
throw new Error('Client is not initialized')
}

signClient.events.removeAllListeners()
signClient.events.removeAllListeners('session_proposal')
signClient.events.removeAllListeners('session_request')
signClient.events.removeAllListeners('session_delete')

signClient.on('session_proposal', (proposal: SessionProposal) => {
setSessionProposals(old => [...old, proposal])
1 change: 1 addition & 0 deletions app/context/WalletConnect/helpers.js
Original file line number Diff line number Diff line change
@@ -174,6 +174,7 @@ class N3Helper {
Neon.create.query({ ...queryLike, jsonrpc: '2.0' }),
)
}

return {
id: sessionRequest.id,
jsonrpc: '2.0',
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -121,9 +121,9 @@
"@ledgerhq/devices": "^7.0.0",
"@ledgerhq/hw-transport-node-hid-noevents": "6.7.0",
"@tippyjs/react": "^4.2.5",
"@walletconnect/sign-client": "2.4.6",
"@walletconnect/types": "2.4.6",
"@walletconnect/utils": "2.4.6",
"@walletconnect/sign-client": "2.7.3",
"@walletconnect/types": "2.7.3",
"@walletconnect/utils": "2.7.3",
"axios": "0.21.1",
"axios-retry": "3.1.1",
"bignumber.js": "5.0.0",
411 changes: 68 additions & 343 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 5c221f2

Please sign in to comment.