I'm working on Counter example of Solana. Everything works well on localnetwork, but when I try on devnet I got the message
Transaction simulation failed: Attempt to debit an account but found no record of a prior credit.
I send SOL to counter's public key, but it doesn't help.
What could I do and why localnet is ok but devnet failed?