Describe the bug
Deploying contract to different environments changes which are visible in the deployed contract list. But a contract not pinned will get lost when the environment changes but the Workspace stays the same.
So when you deploy the RemixVM and then switch to INjected w/ metamask connected to sepolia, you'll lose your unpinned contracts in Remix VM. Then deploy to another chain using MetaMask and you'll lose access to your unpinned Sepolia contract
To Reproduce
Steps to reproduce the behavior:
- Deploy a contract to the REmix VM and then deploy to Sepolia.
- Go back to Remix VM and try to find your contracts - not saved
- Switch back to Sepolia and those are not saved (unpinned)
- deploy again to Sepolia
- Switch to base and you'll lose unpinned sepolia contracts.
Expected behavior
IF you'll lose access, I'd expect to have a warning.
We show what chain your are deployed to in the deployed instance, so I'd expect that that there would be multiple chains in this list. But we show what chain but we don't allow different chains to appear near each other. This may be a feature - because you cannot interact with a contract if you are not connected to that chain, but it could be in the list - and just shows a warning that you need to connect to the chain to see the contract - or something like that.
Describe the bug
Deploying contract to different environments changes which are visible in the deployed contract list. But a contract not pinned will get lost when the environment changes but the Workspace stays the same.
So when you deploy the RemixVM and then switch to INjected w/ metamask connected to sepolia, you'll lose your unpinned contracts in Remix VM. Then deploy to another chain using MetaMask and you'll lose access to your unpinned Sepolia contract
To Reproduce
Steps to reproduce the behavior:
Expected behavior
IF you'll lose access, I'd expect to have a warning.
We show what chain your are deployed to in the deployed instance, so I'd expect that that there would be multiple chains in this list. But we show what chain but we don't allow different chains to appear near each other. This may be a feature - because you cannot interact with a contract if you are not connected to that chain, but it could be in the list - and just shows a warning that you need to connect to the chain to see the contract - or something like that.