I have a problem when developing in Remix and using my testnet as a blockchain. I have a contract that connects through an interface with an standart ERC20 contract. Everything works fine until I start to deploy them both after each other.
1.) The first contract should send tokens from the contract token to another contract.
2.) The second contract is simply an ERC20 contract, no more.
How it should work: I deploy contract 2 and then contract 1. I as the owner have all tokens and run the allow function to give contract 1 the permission to move tokens with the transferFrom function.
What happens The first thing that happens is, that once both contracts are deployed, I don't get answers in Remix for one of both contracts. For example I can't get the totalSupply, all it says is "Calling contract.totalSupply". It seems like they somehow are overwriting each other or so, but one of both contract is not working anymore. Then also one contract works. I can not even just not get variable values but also no longer run functions in one of the contracts.
Why does no contract work when I deployed both? Does someone had the same issues?