Skip to content

Commit

Permalink
fix: update wallet connect
Browse files Browse the repository at this point in the history
  • Loading branch information
schmanu committed May 30, 2024
1 parent 0d7bd75 commit f5e0527
Show file tree
Hide file tree
Showing 4 changed files with 152 additions and 64 deletions.
4 changes: 3 additions & 1 deletion jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@ const customJestConfig = {
// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async
module.exports = async () => ({
...(await createJestConfig(customJestConfig)()),
transformIgnorePatterns: ['node_modules/(?!(uint8arrays|multiformats|@web3-onboard/common)/)'],
transformIgnorePatterns: [
'node_modules/(?!(uint8arrays|multiformats|@web3-onboard/common|@walletconnect/(.*)/uint8arrays)/)',
],
})
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
"node": ">=16"
},
"resolutions": {
"@walletconnect/core": "^2.11.2",
"@walletconnect/ethereum-provider": "^2.11.2",
"@safe-global/safe-core-sdk-types/**/ethers": "^6.11.1",
"@safe-global/protocol-kit/**/ethers": "^6.11.1",
"@safe-global/api-kit/**/ethers": "^6.11.1",
Expand Down Expand Up @@ -66,8 +64,8 @@
"@spindl-xyz/attribution-lite": "^1.4.0",
"@tkey-mpc/common-types": "^8.2.2",
"@truffle/hdwallet-provider": "^2.1.4",
"@walletconnect/utils": "^2.11.3",
"@walletconnect/web3wallet": "^1.11.2",
"@walletconnect/utils": "^2.13.1",
"@walletconnect/web3wallet": "^1.12.1",
"@web3-onboard/coinbase": "^2.2.6",
"@web3-onboard/core": "^2.21.4",
"@web3-onboard/injected-wallets": "^2.10.14",
Expand Down Expand Up @@ -134,7 +132,7 @@
"@types/react-gtm-module": "^2.0.3",
"@types/semver": "^7.3.10",
"@typescript-eslint/eslint-plugin": "^7.6.0",
"@walletconnect/types": "^2.11.3",
"@walletconnect/types": "^2.13.1",
"cross-env": "^7.0.3",
"cypress": "^12.15.0",
"cypress-file-upload": "^5.0.8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ describe('WalletConnectWallet', () => {
publicKey: '123',
metadata: {} as SignClientTypes.Metadata,
},
pairingTopic: '0x3456',
requiredNamespaces: {} as ProposalTypes.RequiredNamespaces,
optionalNamespaces: {} as ProposalTypes.OptionalNamespaces,
expiryTimestamp: 2,
Expand Down Expand Up @@ -306,6 +307,7 @@ describe('WalletConnectWallet', () => {
id: 1,
expiry: 1,
relays: [],
pairingTopic: '0x3456',
proposer: {
publicKey: '123',
metadata: {} as SignClientTypes.Metadata,
Expand Down
Loading

0 comments on commit f5e0527

Please sign in to comment.