From d2030de867c9ffbb1def803569946fa5707fd2e9 Mon Sep 17 00:00:00 2001 From: Alexandra Betouni <31625338+alexandraB99@users.noreply.github.com> Date: Tue, 6 Feb 2024 18:19:23 +0200 Subject: [PATCH] [TransferOwnershipPopup]: Added getUidForData function Closes #13288 --- .../AppLayouts/Communities/popups/TransferOwnershipPopup.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/app/AppLayouts/Communities/popups/TransferOwnershipPopup.qml b/ui/app/AppLayouts/Communities/popups/TransferOwnershipPopup.qml index 540fc8d130..60eb5c264d 100644 --- a/ui/app/AppLayouts/Communities/popups/TransferOwnershipPopup.qml +++ b/ui/app/AppLayouts/Communities/popups/TransferOwnershipPopup.qml @@ -13,6 +13,7 @@ import StatusQ.Core.Utils 0.1 import StatusQ.Components 0.1 import shared.popups 1.0 +import AppLayouts.Wallet.stores 1.0 as WalletStores import utils 1.0 @@ -112,7 +113,8 @@ StatusDialog { // Pre-populated dialog with the relevant Owner token info: root.sendModalPopup.preSelectedSendType = Constants.SendType.ERC721Transfer root.sendModalPopup.preSelectedAccount = ModelUtils.getByKey(root.accounts, "address", token.accountAddress) - const uid = token.chainId+"+"+token.tokenAddress.toLowerCase()+"+"+"0" // TODO use getUidForData + const store = WalletStores.RootStore.currentActivityFiltersStore + const uid = store.collectiblesList.getUidForData(token.key, token.tokenAddress, token.chainId); root.sendModalPopup.preSelectedHoldingID = uid root.sendModalPopup.preSelectedHoldingType = Constants.TokenType.ERC721 root.sendModalPopup.open()