Skip to content

Commit 81f41a7

Browse files
committed
Fix walletconnect settings to match latest SDK update
1 parent 404a1d3 commit 81f41a7

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const configMainnet: Config = {
6060
jsonRpcUrlSecondary: 'https://forno.celo.org',
6161
gatewayFeeRecipient: '0x97a5fF70483F9320aFA72e04AbA148Aa1c26946C',
6262
blockscoutUrl: 'https://explorer.celo.org',
63-
walletConnectRelay: 'wss://walletconnect.celo.org',
63+
walletConnectRelay: 'wss://relay.walletconnect.org',
6464
discordUrl: 'https://discord.com/channels/600834479145353243/812471799585439794',
6565
desktopUrls,
6666
chainId: 42220,

src/features/walletConnect/walletConnect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ function approveClientSession(
250250

251251
const response: ClientTypes.ResponseInput = {
252252
state: {
253-
accounts: [`celo:${config.chainId}:${account}`],
253+
accounts: [`eip155:${config.chainId}:${account}`],
254254
},
255255
metadata: APP_METADATA,
256256
}

src/features/walletConnect/walletConnectReqHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export async function validateRequestEvent(
2525
return false
2626
}
2727

28-
if (event.chainId !== `celo:${config.chainId}`) {
28+
if (event.chainId !== `celo:${config.chainId}` && event.chainId !== `eip155:${config.chainId}`) {
2929
await denyRequest(event, client, WcError.UNSUPPORTED_CHAINS)
3030
return false
3131
}

0 commit comments

Comments
 (0)