micro-stacks icon indicating copy to clipboard operation
micro-stacks copied to clipboard

Open contract call and web wallet not aligned on network

Open mijoco-btc opened this issue 2 years ago • 3 comments

Versions: "micro-stacks": "^1.1.1", "@micro-stacks/svelte": "^1.0.3",

Configure the network to be 'testnet' with the hiro web wallet connected to mainnet.

    const config = {
      appName: 'Ecosystem DAO',
      appIconUrl: origin + '/img/logo.png',
      network: 'testnet'
    };
    mountClient(config)

On openContractCall, the wallet opens connected to 'testnet' but looks up the contract on mainnet leading to screen shot;

Screenshot 2022-08-24 at 15 01 54

If I repeat but change the network in the web wallet I get the correct behaviour - i.e. the web wallet looks up the contract on correct network.

The contract is deployed here https://explorer.stacks.co/txid/1f5c4ce7187fa1949be5911aa5dfc2c0b7d4c9a012f75307820c075c9a3b351e?chain=testnet

mijoco-btc avatar Aug 24 '22 14:08 mijoco-btc

NB also tried to set the network after calling mountClient(config) like this

    const network = getNetwork();
    $network.setNetwork('testnet');

but have same issue.

mijoco-btc avatar Aug 24 '22 16:08 mijoco-btc

This sounds more like a bug in the wallet than in micro-stacks, cc @kyranjamie

aulneau avatar Aug 25 '22 14:08 aulneau

@radicleart can you please include a reproduction?

aulneau avatar Aug 25 '22 14:08 aulneau

Sorry I missed this notification, just saw it now. If this is definitely a wallet but can you open an issue and include a demo of it not working?

kyranjamie avatar Sep 05 '22 07:09 kyranjamie

@kyranjamie - have opened issue on wallet with steps to reproduce. See https://github.com/hirosystems/stacks-wallet-web/issues/2645

mijoco-btc avatar Sep 07 '22 09:09 mijoco-btc