Skip to content

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

@marc0olo

Description

@marc0olo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions