I played around with Anchor and put my wallet pubkey in the newAccount field. Now my wallet is assigned to my program. So I it can't pay for transaction fees anymore.
Can I reverse that somehow or do I need to create a new account?
I played around with Anchor and put my wallet pubkey in the newAccount field. Now my wallet is assigned to my program. So I it can't pay for transaction fees anymore.
Can I reverse that somehow or do I need to create a new account?
This happens to people accidentally, so for taking back your wallet you must transfer all lamports from it with new instructions (your program is the new owner of your wallet and can do anything with that without any signature). after that reallocate the space in the account to 0 and then reassign the owner of the account to the system program.
Cheers