[TransferOwnershipPopup]: Added getUidForData function

Closes #13288
This commit is contained in:
Alexandra Betouni 2024-02-06 18:19:23 +02:00
parent 3eff96bfc8
commit d2030de867
1 changed files with 3 additions and 1 deletions

View File

@ -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()