Return value from nested function 'not defined'
Return value from nested function 'not defined' Question: I have a nested function that is returning two values. When I try to call those values I get an error saying its not defined. async def wallet(self, interaction:discord.Interaction, button:discord.ui.Button): ### Blah blah blah ### @sync_to_async def get_user_wallet(): private_key = abc wallet = xyz return wallet, private_key …