fairDataSociety / blossom

Browser Extension based on Fair Data Protocol
Apache License 2.0
5 stars 4 forks source link

Getting user's wallet address #141

Open IgorShadurin opened 1 year ago

IgorShadurin commented 1 year ago

Is it possible to get the user's wallet address using Blossom? With code like fdpClient.account.wallet.address. It looks like this field is undefined in FD.

https://github.com/fairDataSociety/fairdrive-theapp/blob/4c4cbe47a2bec7c313dd5766bd005c34fed7d566/src/pages/drive/index.tsx#L86

@tomicvladan

tomicvladan commented 1 year ago

Unfortunately, it's not possible with the current implementation.

That's why it would be a good idea to replace all properties with methods in fdp-storage. Every access to blossom's fdp-storage is async, so the only way to implement it is by converting everything to async methods, to keep the same API.