Skip to content

Commit 57c3937

Browse files
committed
Altme not selecting the correct address on WalletConnect #3447
1 parent 69d1e1c commit 57c3937

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

android/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ allprojects {
22
repositories {
33
google()
44
mavenCentral()
5+
maven {
6+
url = uri("https://jitpack.io")
7+
}
58
}
69
}
710

lib/connection_bridge/wallet_connect/cubit/wallet_connect_cubit.dart

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,7 @@ class WalletConnectCubit extends Cubit<WalletConnectState> {
7171
final projectId = dotenv.get('WALLET_CONNECT_PROJECT_ID');
7272

7373
_reownWalletKit = ReownWalletKit(
74-
core: ReownCore(
75-
projectId: projectId,
76-
relayUrl:
77-
'wss://relay.walletconnect.com', // The relay websocket URL, leave blank to use the default
78-
),
74+
core: ReownCore(projectId: projectId),
7975
metadata: const PairingMetadata(
8076
name: 'Wallet (Altme)',
8177
description: 'Altme Wallet',

lib/dashboard/connection/confirm_connection/cubit/confirm_connection_cubit.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class ConfirmConnectionCubit extends Cubit<ConfirmConnectionState> {
8989
final SessionProposalEvent? sessionProposalEvent =
9090
walletConnectState.sessionProposalEvent;
9191

92-
final cryptoAccounts = walletCubit.state.cryptoAccount.data.toList();
92+
final cryptoAccounts = [currentAccount];
9393

9494
final params = sessionProposalEvent!.params;
9595

0 commit comments

Comments
 (0)