rgalyeon / Scroll_V2

Software for convenient work in the Scroll chain.
28 stars 10 forks source link

Canvas check #3

Closed ChoyV closed 2 months ago

ChoyV commented 2 months ago

There is a error in your code when you check whether Profile is minted

minted = await contract.functions.isProfileMinted(self.address).call()

You have to getProfile first and then check isProfileMinted

Like this :

profile= await contract.functions.getProfile(self.address).call();
minted = await contract.functions.isProfileMinted(profile).call()
rgalyeon commented 2 months ago

Thank you so much! I really appreciate your help. I couldn't figure out how it worked. I will fix the code soon.