Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mainnet contract with active wallet connection not found after revisit #114

Open
marc0olo opened this issue Aug 8, 2023 · 0 comments
Open

Comments

@marc0olo
Copy link

marc0olo commented Aug 8, 2023

not sure if a bug or a feature request. as you can see in the screenshot the UI prints errors in the console when revisiting the editor after interacting with a mainnet contract using the SH wallet.

the case is probably as follows:

  • contract was used with active SH wallet connection in contract editor
  • contract editor stores contract id in local cache (browser)
  • contract editor, if opened again, is connected to testnet by default and tries to re-use the stored contractId from local browser cache (because the local cache doesn't know what network the stored contract belongs to)

of course the contract does not exist on testnet, so the 404 happens.

image

it would be great if the UI handles this correctly and remembers the contractId for the mainnet the right way. currently, even if switching to mainnet again, the last used contractId is not picked up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant