From 63021e427ab6ad0d2f524e0d956112dc1650b09d Mon Sep 17 00:00:00 2001 From: ignaciosantise <25931366+ignaciosantise@users.noreply.github.com> Date: Mon, 2 Sep 2024 17:19:14 -0300 Subject: [PATCH] fix: changed auth request rejection code --- wallets/rn_cli_wallet/android/app/build.gradle | 2 +- .../rn_cli_wallet/src/modals/SessionAuthenticateModal.tsx | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/wallets/rn_cli_wallet/android/app/build.gradle b/wallets/rn_cli_wallet/android/app/build.gradle index 49bd1dfe..175c388b 100644 --- a/wallets/rn_cli_wallet/android/app/build.gradle +++ b/wallets/rn_cli_wallet/android/app/build.gradle @@ -89,7 +89,7 @@ android { applicationId "com.walletconnect.web3wallet.rnsample" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 36 + versionCode 37 versionName "1.0" resValue "string", "build_config_package", "com.walletconnect.web3wallet.rnsample" } diff --git a/wallets/rn_cli_wallet/src/modals/SessionAuthenticateModal.tsx b/wallets/rn_cli_wallet/src/modals/SessionAuthenticateModal.tsx index 91a26a69..b1e963ea 100644 --- a/wallets/rn_cli_wallet/src/modals/SessionAuthenticateModal.tsx +++ b/wallets/rn_cli_wallet/src/modals/SessionAuthenticateModal.tsx @@ -103,7 +103,10 @@ export default function SessionAuthenticateModal() { setIsLoadingReject(true); await web3wallet.rejectSessionAuthenticate({ id: authRequest.id, - reason: getSdkError('USER_REJECTED'), + reason: { + code: 12001, + message: 'User rejected auth request', + }, }); } catch (e) { console.log((e as Error).message, 'error');