I am deploying a program using Playground. The same account and code run perfectly on the devnet. However, when deploying to the mainnet, it fails at a certain stage with the following error:
error:
Deployment error:
Instruction index: 0
Reason: Invalid account data for instruction.
I don't understand what causes this issue. Can someone help me with this?