webaverse / webaverse-blockchain-lib

0 stars 1 forks source link

completed fetch profile #7

Open redsky500 opened 2 years ago

redsky500 commented 2 years ago

Completed fetch profile

redsky500 commented 2 years ago

By using ProfileManager Class you can get the profile. To get profile request like that in ProfileManager Class. const profile = await fetch(https://nft.webaverse.com/account/${address}).then((res) => res.json()); Then when click "fetch profile" button, you can call getProfile function in ProfileManager.

hamzatrq commented 2 years ago

This is wrong. You can not fetch user profile through metamask address. It will send you the result but you will not be able to change the data or store anything

redsky500 commented 2 years ago

Hey, hamzatrq. But I can fetch user profile through metamask address. I have checked smart contract and it's able to fetch profile with metamask address. Does it make sense?