From de9e6b2bebd03ee39fc8487f5a7c514434d7645a Mon Sep 17 00:00:00 2001 From: Jenea Vranceanu <36865532+JeneaVranceanu@users.noreply.github.com> Date: Wed, 2 Oct 2024 12:38:38 +0300 Subject: [PATCH] Revert "chore: added new flag to up_import - isDeviceToDeviceImport" --- src/components/endpoints/ImportProfile.vue | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/src/components/endpoints/ImportProfile.vue b/src/components/endpoints/ImportProfile.vue index cf3169a9..9693873d 100644 --- a/src/components/endpoints/ImportProfile.vue +++ b/src/components/endpoints/ImportProfile.vue @@ -12,23 +12,15 @@ const web3 = useWeb3Connection() const universalProfileAddress = ref('') const isRecovery = ref(false) -const isDeviceToDeviceImportMode = ref(false) const controllerAddress = ref('') const onImportProfile = async () => { clearNotification() try { - let params: any[] = [universalProfileAddress.value] - // Extension versions prior to 3.0.0.58 will not support more than 1 parameter in the array. - // Thus, 'false' must not be passed or it will break the up_import in test-dapp for extension version < 3.0.0.58 - if (isDeviceToDeviceImportMode.value) { - params.push(isDeviceToDeviceImportMode.value) - } - const request = { method: isRecovery.value ? 'up_recover' : 'up_import', - params, + params: [universalProfileAddress.value], } let newControllerAddress: string = await web3.sendRequest(request) if (newControllerAddress) { @@ -67,18 +59,6 @@ const onImportProfile = async () => { Recover the profile into your extension -
- -